spec/gatoroid_spec.rb in gatoroid-0.2.16 vs spec/gatoroid_spec.rb in gatoroid-0.2.17

- old
+ new

@@ -123,10 +123,11 @@ } Time.zone = "Pacific Time (US & Canada)" @obj.visits.range(Time.zone.now..Time.zone.now + 365.day,Mongoid::Gator::Readers::DAY, :siteid=>100).should have(366).record end - it "should have 1 record using range method for today and yesterday at hour grain" do + it "should have 1 record using range method for today and yesterday at hour grain", :nantest => true do + @obj.visits.range(Time.now.change(:hour=>0).change(:sec=>0)..Time.now.change(:hour=>0).change(:sec=>0) + 1.day,Mongoid::Gator::Readers::HOUR, :siteid=>100).inspect @obj.visits.range(Time.now.change(:hour=>0).change(:sec=>0)..Time.now.change(:hour=>0).change(:sec=>0) + 1.day,Mongoid::Gator::Readers::HOUR, :siteid=>100).should have(24).record end it "should have 1 record using range method for today and yesterday at month grain" do @obj.visits.range(Time.now..Time.now + 1.day,Mongoid::Gator::Readers::MONTH, :siteid=>100).should have(1).record \ No newline at end of file