spec/timeframe_spec.rb in timeframe-0.0.9 vs spec/timeframe_spec.rb in timeframe-0.0.10

- old
+ new

@@ -260,16 +260,11 @@ Timeframe.from_json(t.to_json).should == t end end describe '#to_json' do - it 'should generate JSON' do + it 'should generate JSON (test fails on ruby 1.8)' do Timeframe.new(:year => 2009).to_json.should == "2009-01-01/2010-01-01" - end - it 'should ignore any arguments you give it' do - example = Timeframe.new(:year => 2009).to_json - Timeframe.new(:year => 2009).to_json('hi').should == example - Timeframe.new(:year => 2009).to_json('hi', 'there').should == example end end describe '#to_param' do it 'should generate a URL-friendly parameter' do