Skip to content

Commit

Permalink
Merge pull request #2 from alexjfisher/rubocop
Browse files Browse the repository at this point in the history
Rubocop
  • Loading branch information
igalic authored Sep 5, 2016
2 parents d000d5f + d511d7f commit 6196f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/unit/provider/network_config/interfaces_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def fixture_data(file)
})
end

it 'parses out vlan iface lines' do
it 'parses out vlan iface lines' do # rubocop:disable RSpec/MultipleExpectations
fixture = fixture_data('two_interfaces_static_vlan')
data = described_class.parse_file('', fixture)
expect(data.find { |h| h[:name] == 'eth0' }).to eq(name: 'eth0',
Expand Down Expand Up @@ -372,7 +372,7 @@ def fixture_data(file)
expect(content.scan(%r{post-down .*$}).size).to eq(2)
end

it 'writes the values in order' do
it 'writes the values in order' do # rubocop:disable RSpec/MultipleExpectations
expect(content.scan(%r{^\s*post-down .*$})[0]).to eq(' post-down /bin/touch /tmp/eth1-down1')
expect(content.scan(%r{^\s*post-down .*$})[1]).to eq(' post-down /bin/touch /tmp/eth1-down2')
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/provider/network_config/redhat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def fixture_data(file)
end

describe 'selecting files to parse' do
let(:network_scripts_path) { fixture_file('network-scripts') }

subject { described_class.target_files(network_scripts_path).map { |file| File.basename(file) } }

let(:network_scripts_path) { fixture_file('network-scripts') }

valid_files = %w(ifcfg-bond0 ifcfg-bond1 ifcfg-eth0 ifcfg-eth1 ifcfg-eth2
ifcfg-eth3 ifcfg-vlan100 ifcfg-vlan100:0 ifcfg-vlan200
ifcfg-vlan300 ifcfg-vlan400 ifcfg-vlan500 ifcfg-eth0.0
Expand Down

0 comments on commit 6196f54

Please sign in to comment.