spec/searchlogic/named_scopes/conditions_spec.rb in searchlogic-2.4.19 vs spec/searchlogic/named_scopes/conditions_spec.rb in searchlogic-2.4.21
- old
+ new
@@ -113,10 +113,10 @@
context "any and all conditions" do
it "should do nothing if no arguments are passed" do
User.username_equals_any.proxy_options.should == {}
end
-
+
it "should treat an array and multiple arguments the same" do
%w(bjohnson thunt dgainor).each { |username| User.create(:username => username) }
User.username_like_any("bjohnson", "thunt").should == User.username_like_any(["bjohnson", "thunt"])
end