summaryrefslogtreecommitdiff
path: root/spec/ruby/library/set/superset_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/set/superset_spec.rb')
-rw-r--r--spec/ruby/library/set/superset_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/set/superset_spec.rb b/spec/ruby/library/set/superset_spec.rb
index 1336975a9b..bd9d2f3eee 100644
--- a/spec/ruby/library/set/superset_spec.rb
+++ b/spec/ruby/library/set/superset_spec.rb
@@ -27,10 +27,10 @@ describe "Set#superset?" do
end
it "raises an ArgumentError when passed a non-Set" do
- lambda { Set[].superset?([]) }.should raise_error(ArgumentError)
- lambda { Set[].superset?(1) }.should raise_error(ArgumentError)
- lambda { Set[].superset?("test") }.should raise_error(ArgumentError)
- lambda { Set[].superset?(Object.new) }.should raise_error(ArgumentError)
+ -> { Set[].superset?([]) }.should raise_error(ArgumentError)
+ -> { Set[].superset?(1) }.should raise_error(ArgumentError)
+ -> { Set[].superset?("test") }.should raise_error(ArgumentError)
+ -> { Set[].superset?(Object.new) }.should raise_error(ArgumentError)
end
context "when comparing to a Set-like object" do