test/unit/test_support.rb in mongo_mapper-unstable-2010.2.9 vs test/unit/test_support.rb in mongo_mapper-unstable-2010.2.10

- old
+ new

@@ -265,9 +265,17 @@ should "return empty string if blank" do String.from_mongo('').should == '' end end + context "Symbol" do + %w(gt lt gte lte ne in nin mod all size where exists asc desc).each do |operator| + should "have $#{operator} operator" do + :foo.respond_to?(operator) + end + end + end + context "Time#to_mongo without Time.zone" do should "be time to milliseconds if string" do Time.to_mongo('2000-01-01 01:01:01.123456').should == Time.local(2000, 1, 1, 1, 1, 1, 123000).utc end \ No newline at end of file