diff options
Diffstat (limited to 'spec/ruby/core/string/rstrip_spec.rb')
-rw-r--r-- | spec/ruby/core/string/rstrip_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/string/rstrip_spec.rb b/spec/ruby/core/string/rstrip_spec.rb index 6376e5df33..2f32836e54 100644 --- a/spec/ruby/core/string/rstrip_spec.rb +++ b/spec/ruby/core/string/rstrip_spec.rb @@ -41,12 +41,12 @@ describe "String#rstrip!" do end it "raises a #{frozen_error_class} on a frozen instance that is modified" do - lambda { " hello ".freeze.rstrip! }.should raise_error(frozen_error_class) + -> { " hello ".freeze.rstrip! }.should raise_error(frozen_error_class) end # see [ruby-core:23666] it "raises a #{frozen_error_class} on a frozen instance that would not be modified" do - lambda { "hello".freeze.rstrip! }.should raise_error(frozen_error_class) - lambda { "".freeze.rstrip! }.should raise_error(frozen_error_class) + -> { "hello".freeze.rstrip! }.should raise_error(frozen_error_class) + -> { "".freeze.rstrip! }.should raise_error(frozen_error_class) end end |