diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-03 01:16:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-03 01:16:57 +0900 |
commit | 242e58db2f34c3e35265fc393cd7c5c792e65754 (patch) | |
tree | 17e7526118bf57aae622e5abfc6950accec8351c /spec | |
parent | 061eba02294fd056108612ff16a0d7ac08e6fe0d (diff) | |
download | ruby-242e58db2f34c3e35265fc393cd7c5c792e65754.tar.gz |
Removed obsolete names
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/library/etc/getgrgid_spec.rb | 7 | ||||
-rw-r--r-- | spec/ruby/library/etc/struct_group_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/etc/struct_passwd_spec.rb | 2 |
3 files changed, 2 insertions, 9 deletions
diff --git a/spec/ruby/library/etc/getgrgid_spec.rb b/spec/ruby/library/etc/getgrgid_spec.rb index c7bd55b20e..14da5e041d 100644 --- a/spec/ruby/library/etc/getgrgid_spec.rb +++ b/spec/ruby/library/etc/getgrgid_spec.rb @@ -46,13 +46,6 @@ platform_is_not :windows do gr.name.should == @name end - it "returns the Group for a given gid if it exists" do - grp = Etc.getgrgid(@gid) - grp.should be_kind_of(Struct::Group) - grp.gid.should == @gid - grp.name.should == @name - end - it "raises if the group does not exist" do -> { Etc.getgrgid(9876)}.should raise_error(ArgumentError) end diff --git a/spec/ruby/library/etc/struct_group_spec.rb b/spec/ruby/library/etc/struct_group_spec.rb index 0b50ff578f..b2147e306d 100644 --- a/spec/ruby/library/etc/struct_group_spec.rb +++ b/spec/ruby/library/etc/struct_group_spec.rb @@ -1,7 +1,7 @@ require_relative '../../spec_helper' require 'etc' -describe "Struct::Group" do +describe "Etc::Group" do platform_is_not :windows do grpname = IO.popen(%w'id -gn', err: IO::NULL, &:read) next unless $?.success? diff --git a/spec/ruby/library/etc/struct_passwd_spec.rb b/spec/ruby/library/etc/struct_passwd_spec.rb index 93ad9dfa2a..dc37c17e7d 100644 --- a/spec/ruby/library/etc/struct_passwd_spec.rb +++ b/spec/ruby/library/etc/struct_passwd_spec.rb @@ -1,7 +1,7 @@ require_relative '../../spec_helper' require 'etc' -describe "Struct::Passwd" do +describe "Etc::Passwd" do platform_is_not :windows do before :all do @pw = Etc.getpwuid(`id -u`.strip.to_i) |