spec/hamster/stack/empty_spec.rb in hamster-0.1.8 vs spec/hamster/stack/empty_spec.rb in hamster-0.1.11
- old
+ new
@@ -3,14 +3,14 @@
describe Hamster::Stack do
describe "#empty?" do
it "initially returns true" do
- Hamster::Stack.new.should be_empty
+ Hamster.stack.should be_empty
end
it "returns false once items have been added" do
- Hamster::Stack.new.push("A").should_not be_empty
+ Hamster.stack.push("A").should_not be_empty
end
end
end