Skip to content
Browse files

Add specs for ColumnConditions coverage

  • Loading branch information...
1 parent 0181025 commit 3b672b77cbb9b2703169d53c2df424acb2ca0323 @johndouthat johndouthat committed Mar 22, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/searchlogic/named_scopes/column_conditions_spec.rb
View
7 spec/searchlogic/named_scopes/column_conditions_spec.rb
@@ -26,6 +26,9 @@
it "should have does not equal" do
(5..7).each { |age| User.create(:age => age) }
User.age_does_not_equal(6).all.should == User.find_all_by_age([5,7])
+
+ User.create!(:age => nil)
+ User.age_does_not_equal(nil).all.size.should == 3
end
it "should have less than" do
@@ -326,4 +329,8 @@
count2 = User.id_ne(10).username_not_like("root").count
count1.should == count2
end
+
+ it "should produce left outer joins" do
+ User.left_outer_joins(:orders).should == [" LEFT OUTER JOIN \"orders\" ON orders.user_id = users.id "]
+ end
end

0 comments on commit 3b672b7

Please sign in to comment.
Something went wrong with that request. Please try again.