spec/seq_spec.rb in rouge-lang-0.0.9 vs spec/seq_spec.rb in rouge-lang-0.0.10

- old
+ new

@@ -108,15 +108,15 @@ should eq Rouge::Seq::Cons.new(1, Rouge::Seq::Cons.new(2, Rouge::Seq::Cons.new(3, Rouge::Seq::Empty))) } end - describe "#inspect" do - it { Rouge::Seq::Cons[].inspect.should eq "()" } - it { Rouge::Seq::Cons[1].inspect.should eq "(1)" } - it { Rouge::Seq::Cons[1, 2].inspect.should eq "(1 2)" } - it { Rouge::Seq::Cons[1, 2, 3].inspect.should eq "(1 2 3)" } - it { Rouge::Seq::Cons[1, 2, 3].tail.inspect.should eq "(2 3)" } + describe "#to_s" do + it { Rouge::Seq::Cons[].to_s.should eq "()" } + it { Rouge::Seq::Cons[1].to_s.should eq "(1)" } + it { Rouge::Seq::Cons[1, 2].to_s.should eq "(1 2)" } + it { Rouge::Seq::Cons[1, 2, 3].to_s.should eq "(1 2 3)" } + it { Rouge::Seq::Cons[1, 2, 3].tail.to_s.should eq "(2 3)" } end describe "the ASeq implementation" do subject { Rouge::Seq::Cons[1, 2, 3] }