spec/hamster/hash/clear_spec.rb in hamster-1.0.1.pre.rc.1 vs spec/hamster/hash/clear_spec.rb in hamster-1.0.1.pre.rc2
- old
+ new
@@ -1,21 +1,18 @@
require "spec_helper"
-
require "hamster/hash"
describe Hamster::Hash do
-
describe "#clear" do
[
[],
["A" => "aye"],
["A" => "aye", "B" => "bee", "C" => "see"],
].each do |values|
describe "on #{values}" do
-
before do
@original = Hamster.hash(*values)
@result = @original.clear
end
@@ -24,13 +21,9 @@
end
it "returns an empty hash" do
@result.should equal(Hamster.hash)
end
-
end
-
end
-
end
-
-end
+end
\ No newline at end of file