Skip to content

Commit

Permalink
Resolve rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 committed Mar 1, 2016
1 parent dd8c3fc commit f5051ad
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/unit/recipes/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
node.automatic[:lsb][:codename] = 'trusty'
end.converge('apt::default')
end

before{
allow(::File).to receive(:executable?).and_return(true)
}

before do
allow(::File).to receive(:executable?).and_return(true)
end

it 'creates 10recommends file' do
expect(chef_run).to render_file('/etc/apt/apt.conf.d/10recommends').with_content('# Managed by Chef')
Expand Down

0 comments on commit f5051ad

Please sign in to comment.