forked from GannettDigital/chef-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault_spec.rb
More file actions
29 lines (24 loc) · 767 Bytes
/
Copy pathdefault_spec.rb
File metadata and controls
29 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# encoding: utf-8
require 'chefspec'
require 'spec_helper'
require 'fauxhai'
describe 'python::default' do
let :chef_run do
ChefSpec::SoloRunner.new(file_cache_path: '/var/chef/cache').converge(described_recipe)
end
before do
stub_command("/usr/bin/python -c 'import setuptools'").and_return(true)
end
it 'includes python::custom-package by default' do
chef_run.converge(described_recipe)
expect(chef_run).to include_recipe('python::custom-package')
end
it 'includes python::pip' do
chef_run.converge(described_recipe)
expect(chef_run).to include_recipe('python::pip')
end
it 'includes python::virtualenv' do
chef_run.converge(described_recipe)
expect(chef_run).to include_recipe('python::virtualenv')
end
end