aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/integer/right_shift_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/right_shift_spec.rb')
-rw-r--r--spec/ruby/core/integer/right_shift_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/core/integer/right_shift_spec.rb b/spec/ruby/core/integer/right_shift_spec.rb
index 641d4da662..3eeaf3eb2f 100644
--- a/spec/ruby/core/integer/right_shift_spec.rb
+++ b/spec/ruby/core/integer/right_shift_spec.rb
@@ -79,15 +79,15 @@ describe "Integer#>> (with n >> m)" do
obj = mock("a string")
obj.should_receive(:to_int).and_return("asdf")
- lambda { 3 >> obj }.should raise_error(TypeError)
+ -> { 3 >> obj }.should raise_error(TypeError)
end
it "raises a TypeError when passed nil" do
- lambda { 3 >> nil }.should raise_error(TypeError)
+ -> { 3 >> nil }.should raise_error(TypeError)
end
it "raises a TypeError when passed a String" do
- lambda { 3 >> "4" }.should raise_error(TypeError)
+ -> { 3 >> "4" }.should raise_error(TypeError)
end
end
@@ -177,15 +177,15 @@ describe "Integer#>> (with n >> m)" do
obj = mock("a string")
obj.should_receive(:to_int).and_return("asdf")
- lambda { @bignum >> obj }.should raise_error(TypeError)
+ -> { @bignum >> obj }.should raise_error(TypeError)
end
it "raises a TypeError when passed nil" do
- lambda { @bignum >> nil }.should raise_error(TypeError)
+ -> { @bignum >> nil }.should raise_error(TypeError)
end
it "raises a TypeError when passed a String" do
- lambda { @bignum >> "4" }.should raise_error(TypeError)
+ -> { @bignum >> "4" }.should raise_error(TypeError)
end
end
end