summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/option/bool_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/option/bool_spec.rb')
-rw-r--r--spec/ruby/library/socket/option/bool_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/socket/option/bool_spec.rb b/spec/ruby/library/socket/option/bool_spec.rb
index c4f8a277ba..144a78043d 100644
--- a/spec/ruby/library/socket/option/bool_spec.rb
+++ b/spec/ruby/library/socket/option/bool_spec.rb
@@ -21,7 +21,7 @@ describe "Socket::Option#bool" do
platform_is_not :windows do
it 'raises TypeError when called on a non boolean option' do
opt = Socket::Option.linger(1, 4)
- lambda { opt.bool }.should raise_error(TypeError)
+ -> { opt.bool }.should raise_error(TypeError)
end
end
end