summaryrefslogtreecommitdiff
path: root/spec/ruby/library/etc/getpwnam_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/etc/getpwnam_spec.rb')
-rw-r--r--spec/ruby/library/etc/getpwnam_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/etc/getpwnam_spec.rb b/spec/ruby/library/etc/getpwnam_spec.rb
index 2062ee51aa..3f4416aa9d 100644
--- a/spec/ruby/library/etc/getpwnam_spec.rb
+++ b/spec/ruby/library/etc/getpwnam_spec.rb
@@ -19,7 +19,7 @@ platform_is_not :windows do
end
it "only accepts strings as argument" do
- lambda {
+ -> {
Etc.getpwnam(123)
Etc.getpwnam(nil)
}.should raise_error(TypeError)