spec/hamster/stack/copying_spec.rb in hamster-0.1.13 vs spec/hamster/stack/copying_spec.rb in hamster-0.1.14

- old
+ new

@@ -10,13 +10,15 @@ ["A", "B", "C"], ].each do |values| describe "on #{values.inspect}" do - stack = Hamster.stack(*values) + before do + @stack = Hamster.stack(*values) + end it "returns self" do - stack.send(method).should equal(stack) + @stack.send(method).should equal(@stack) end end end