diff options
Diffstat (limited to 'spec/ruby/library/etc/group_spec.rb')
-rw-r--r-- | spec/ruby/library/etc/group_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/library/etc/group_spec.rb b/spec/ruby/library/etc/group_spec.rb index 1524454333..fdd39bda16 100644 --- a/spec/ruby/library/etc/group_spec.rb +++ b/spec/ruby/library/etc/group_spec.rb @@ -6,6 +6,15 @@ describe "Etc.group" do it_behaves_like :etc_on_windows, :group platform_is_not :windows do + it "returns a Etc::Group struct" do + group = Etc.group + begin + group.should be_an_instance_of(Etc::Group) + ensure + Etc.endgrent + end + end + it "raises a RuntimeError for parallel iteration" do proc { Etc.group do | group | |