spec/beaker/host/unix/file_spec.rb in beaker-4.40.2 vs spec/beaker/host/unix/file_spec.rb in beaker-4.41.0

- old
+ new

@@ -34,12 +34,11 @@ end } let(:instance) { UnixFileTest.new(opts.merge(platform), logger) } describe '#repo_type' do - - ['centos','redhat'].each do |platform| + %w[amazon centos redhat].each do |platform| it "returns correctly for platform '#{platform}'" do @platform = "#{platform}-5-x86_64" expect( instance.repo_type ).to be === 'rpm' end end @@ -56,11 +55,10 @@ }.to raise_error( ArgumentError, /repo\ type\ not\ known/ ) end end describe '#package_config_dir' do - - ['centos','redhat'].each do |platform| + %w[amazon centos redhat].each do |platform| it "returns correctly for platform '#{platform}'" do @platform = "#{platform}-5-x86_64" expect( instance.package_config_dir ).to be === '/etc/yum.repos.d/' end end