dusen 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
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