doc/src/tutorials/stack_05.page.orig in rspec-0.5.6 vs doc/src/tutorials/stack_05.page.orig in rspec-0.5.7
- old
+ new
@@ -12,15 +12,15 @@
setup do
@stack = Stack.new
end
specify "should keep its mouth shut when you send it 'push'" do
- lambda { @stack.push Object.new }.should.not.raise Exception
+ lambda { @stack.push Object.new }.should_not_raise Exception
end
specify "should raise a StackUnderflowError when you send it 'top'" do
- lambda { @stack.top }.should.raise StackUnderflowError
+ lambda { @stack.top }.should_raise StackUnderflowError
end
end
context "A stack with one item" do
@@ -29,11 +29,11 @@
@stack = Stack.new
@stack.push "one item"
end
specify "should return top when sent the 'top' message" do
- @stack.top.should.equal "one item"
+ @stack.top.should_equal "one item"
end
end
</ruby>
@@ -78,14 +78,14 @@
@stack = Stack.new
@stack.push "one item"
end
specify "should keep its mouth shut when you send it 'push'" do
- lambda { @stack.push Object.new }.should.not.raise Exception
+ lambda { @stack.push Object.new }.should_not_raise Exception
end
specify "should return top when you send it 'top'" do
- @stack.top.should.equal "one item"
+ @stack.top.should_equal "one item"
end
end
</ruby>
\ No newline at end of file