spec/hamster/set/map_spec.rb in hamster-0.1.11 vs spec/hamster/set/map_spec.rb in hamster-0.1.12
- old
+ new
@@ -42,18 +42,14 @@
end
describe "with no block" do
before do
- @enumerator = @original.send(method)
+ @result = @original.send(method)
end
- it "preserves the original values" do
- @original.should == Hamster.set("A", "B", "C")
- end
-
- it "returns an enumerator over the values" do
- Hamster.set(*@enumerator.to_a).should == @original
+ it "returns self" do
+ @result.should equal(@original)
end
end
end