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