summaryrefslogtreecommitdiff
path: root/spec/ruby/library/set/sortedset/superset_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/set/sortedset/superset_spec.rb')
-rw-r--r--spec/ruby/library/set/sortedset/superset_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/set/sortedset/superset_spec.rb b/spec/ruby/library/set/sortedset/superset_spec.rb
index 663b179a0c..823781b860 100644
--- a/spec/ruby/library/set/sortedset/superset_spec.rb
+++ b/spec/ruby/library/set/sortedset/superset_spec.rb
@@ -25,9 +25,9 @@ describe "SortedSet#superset?" do
end
it "raises an ArgumentError when passed a non-SortedSet" do
- lambda { SortedSet[].superset?([]) }.should raise_error(ArgumentError)
- lambda { SortedSet[].superset?(1) }.should raise_error(ArgumentError)
- lambda { SortedSet[].superset?("test") }.should raise_error(ArgumentError)
- lambda { SortedSet[].superset?(Object.new) }.should raise_error(ArgumentError)
+ -> { SortedSet[].superset?([]) }.should raise_error(ArgumentError)
+ -> { SortedSet[].superset?(1) }.should raise_error(ArgumentError)
+ -> { SortedSet[].superset?("test") }.should raise_error(ArgumentError)
+ -> { SortedSet[].superset?(Object.new) }.should raise_error(ArgumentError)
end
end