summaryrefslogtreecommitdiff
path: root/spec/ruby/library/etc/getgrnam_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/etc/getgrnam_spec.rb')
-rw-r--r--spec/ruby/library/etc/getgrnam_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/etc/getgrnam_spec.rb b/spec/ruby/library/etc/getgrnam_spec.rb
index 3fe94ed5f5..325ea7b297 100644
--- a/spec/ruby/library/etc/getgrnam_spec.rb
+++ b/spec/ruby/library/etc/getgrnam_spec.rb
@@ -11,7 +11,7 @@ platform_is :windows do
end
end
-platform_is_not :windows do
+platform_is_not :windows, :android do
describe "Etc.getgrnam" do
it "returns a Etc::Group struct instance for the given group" do
gr_name = Etc.getgrent.name
@@ -21,10 +21,10 @@ platform_is_not :windows do
end
it "only accepts strings as argument" do
- lambda {
+ -> {
Etc.getgrnam(123)
Etc.getgrnam(nil)
- }.should raise_error(TypeError)
+ }.should.raise(TypeError)
end
end
end