spec/hamster/stack/empty_spec.rb in hamster-0.1.13 vs spec/hamster/stack/empty_spec.rb in hamster-0.1.14
- old
+ new
@@ -10,13 +10,15 @@
[["A", "B", "C"], false],
].each do |values, expected|
describe "on #{values.inspect}" do
- stack = Hamster.stack(*values)
+ before do
+ @stack = Hamster.stack(*values)
+ end
it "returns #{expected}" do
- stack.empty?.should == expected
+ @stack.empty?.should == expected
end
end
end