data_table 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/data_table/mongoid.rb +1 -1
- data/lib/data_table/version.rb +1 -1
- data/spec/mongoid_data_table_spec.rb +4 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/data_table/mongoid.rb
CHANGED
data/lib/data_table/version.rb
CHANGED
@@ -41,6 +41,10 @@ describe DataTable do
|
|
41
41
|
it "should require a match for each term when there is a single search field" do
|
42
42
|
send(:_where_conditions, "q1 q2", %w(f)).should == {"f" => {"$all" => [/q1/i, /q2/i]}}
|
43
43
|
end
|
44
|
+
|
45
|
+
it "should require a match for each term when there is a single search field with spaces at the end" do
|
46
|
+
send(:_where_conditions, "q1 ", %w(f)).should == {"f" => /q1/i}
|
47
|
+
end
|
44
48
|
end
|
45
49
|
|
46
50
|
end
|