spec/search_spec.rb in binarylogic-searchlogic-2.1.6 vs spec/search_spec.rb in binarylogic-searchlogic-2.1.7
- old
+ new
@@ -224,9 +224,16 @@
search = Order.search
search.created_at_after = "Jan 1, 2009 9:33AM"
search.created_at_after.should == Time.parse("Jan 1, 2009 9:33AM")
end
+ it "should convert the time to the current zone" do
+ search = Order.search
+ now = Time.now
+ search.created_at_after = now
+ search.created_at_after.should == now.in_time_zone
+ end
+
it "should be an Array and cast it's values given ['1', '2', '3']" do
search = Order.search
search.id_equals_any = ["1", "2", "3"]
search.id_equals_any.should == [1, 2, 3]
end
\ No newline at end of file