spec/readers_spec.rb in trackoid-0.3.3 vs spec/readers_spec.rb in trackoid-0.3.4
- old
+ new
@@ -23,11 +23,10 @@
range = Date.parse("2010-07-11")..Date.parse("2010-07-13")
@mock.visits.on(range).should == [1, 2, 3]
end
-
it "should return the correct values for .all_values" do
@mock.visits.set(1, "2010-07-11")
@mock.visits.set(2, "2010-07-12")
@mock.visits.set(3, "2010-07-13")
@@ -40,11 +39,10 @@
@mock.visits.all_values.should == [5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10]
@mock.visits.last_value.should == 10
@mock.visits.first_value.should == 5
end
-
end
describe "Testing Readers with an empty model" do
before do
@@ -72,6 +70,5 @@
it "should return nil for .all_values" do
@mock.visits.all_values.should be_nil
end
end
-