Skip to content

Commit

Permalink
updating test for chefspec 3
Browse files Browse the repository at this point in the history
  • Loading branch information
vinyar committed Jun 5, 2014
1 parent 0eb59e2 commit f63d25e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec/tester_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
require 'spec_helper'

describe 'line::tester' do
let(:chef_run) { ChefSpec::ChefRunner.new.converge 'line::tester' }
let(:chef_run) { ChefSpec::Runner.new.converge 'line::tester' }

it 'creates dangerfile' do
expect(chef_run).to create_cookbook_file '/tmp/dangerfile'
file = chef_run.cookbook_file '/tmp/dangerfile'
expect(file).to be_owned_by('root')
expect(file.mode).to eq("00644")
expect(chef_run).to create_cookbook_file('/tmp/dangerfile').with_owner('root').with_mode('00644')
end

end
Expand Down

0 comments on commit f63d25e

Please sign in to comment.