dusen 0.6.0 → 0.6.1
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/lib/dusen/version.rb
CHANGED
@@ -214,6 +214,12 @@ shared_examples_for 'model with search syntax' do
|
|
214
214
|
subject.where_like({ :city => ['word1', 'word2'] }, :negate => true).to_a.should =~ [match]
|
215
215
|
end
|
216
216
|
|
217
|
+
it "doesn't match NULL values" do
|
218
|
+
no_match = subject.create!(:city => nil)
|
219
|
+
match = subject.create!(:city => 'word3')
|
220
|
+
subject.where_like({ :city => ['word1'] }, :negate => true).to_a.should =~ [match]
|
221
|
+
end
|
222
|
+
|
217
223
|
end
|
218
224
|
|
219
225
|
end
|
metadata
CHANGED