require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/windows', __FILE__)
require 'etc'

describe "Etc.group" do
  it_behaves_like(:etc_on_windows, :group)
end

require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/windows', __FILE__)
require 'etc'

describe "Etc.group" do
  it_behaves_like(:etc_on_windows, :group)

  it "raises a RuntimeError for parallel iteration" do
    proc {
      Etc.group do | group |
        Etc.group do | group2 |
        end
      end
    }.should raise_error(RuntimeError)
  end

end

Add spec for parallel group iteration
Add spec for parallel group iteration

Spec is shamelessly taken from #1149 by @cwgem. This way it's ensured
it is run and don't have to wait for a Rubyspec pull request.
