Skip to content

Commit

Permalink
Merge pull request sous-chefs#17 from vinyar/alex_hotfix
Browse files Browse the repository at this point in the history
updating test for chefspec 3
  • Loading branch information
Sean OMeara committed Jun 5, 2014
2 parents 0eb59e2 + 76106d4 commit 82523b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
source 'https://rubygems.org'

gem 'berkshelf'
gem 'berkshelf', '~> 2.0'
gem 'rspec', :group => :integration
gem 'chefspec', :group => :integration
gem 'chefspec', '~> 3.0', :group => :integration
gem 'guard', :group => :integration
gem 'test-kitchen', :group => :integration
gem 'kitchen-vagrant', :group => :integration
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 82523b5

Please sign in to comment.