Permalink
Browse files

Added a failing test for Range scope value typecasting.

  • Loading branch information...
laserlemon authored and binarylogic committed Sep 30, 2009
1 parent 015a567 commit 89bb814dceb720e6a201145ccad4071e92883111
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/search_spec.rb
View
@@ -237,6 +237,12 @@
search.total_gt.should == 1.5
end
+ it "should be a Range given 1..3" do
+ search = Order.search
+ search.total_eq = (1..3)
+ search.total_eq.should == (1..3)
+ end
+
it "should be a Date given 'Jan 1, 2009'" do
search = Order.search
search.shipped_on_after = "Jan 1, 2009"

0 comments on commit 89bb814

Please sign in to comment.