require_relative '../spec_helper'
describe 'berkshelf-api-server-ya::default' do
-=begin
- subject { ChefSpec::Runner.new.converge(described_recipe) }
+ before {
+ stub_command(%r|cd /opt/berkshelf-api/v\d+\.\d+\.\d+ && /opt/chef/embedded/bin/bundle check|).
+ and_return(true)
+ }
- # Write quick specs using `it` blocks with implied subjects
- it { should do_something('...') }
+ let(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) }
- # Write full examples using the `expect` syntax
- it 'does something' do
- expect(subject).to do_something('...')
+ it 'includes berkshelf-api-server-ya recipes.' do
+ expect(chef_run).to include_recipe('berkshelf-api-server-ya::app')
+ expect(chef_run).to include_recipe('berkshelf-api-server-ya::http_proxy')
end
-
- # Use an explicit subject
- let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }
-
- it 'does something' do
- expect(chef_run).to do_something('...')
- end
-=end
end
+