cheffish 1.1.2 → 1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,9 +10,6 @@ describe 'Cheffish Recipe DSL' do
10
10
  context 'when we include with_chef_local_server' do
11
11
  before :each do
12
12
  @tmp_repo = tmp_repo = Dir.mktmpdir('chef_repo')
13
- load_recipe do
14
- with_chef_local_server :chef_repo_path => tmp_repo
15
- end
16
13
  end
17
14
 
18
15
  after :each do
@@ -20,10 +17,11 @@ describe 'Cheffish Recipe DSL' do
20
17
  end
21
18
 
22
19
  it 'chef_nodes get put into said server' do
23
- run_recipe do
20
+ tmp_repo = @tmp_repo
21
+ expect_recipe {
22
+ with_chef_local_server :chef_repo_path => tmp_repo
24
23
  chef_node 'blah'
25
- end
26
- expect(chef_run).to have_updated 'chef_node[blah]', :create
24
+ }.to have_updated 'chef_node[blah]', :create
27
25
  expect(File).to exist("#{@tmp_repo}/nodes/blah.json")
28
26
  end
29
27
  end
@@ -1,8 +1,7 @@
1
+ require 'cheffish/rspec'
1
2
 
2
3
  require 'cheffish'
3
4
  require 'chef/provider/chef_acl'
4
- require 'cheffish/rspec/chef_run_support'
5
- require 'cheffish/rspec/matchers'
6
5
 
7
6
  RSpec.configure do |config|
8
7
  config.filter_run :focus => true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheffish
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-08 00:00:00.000000000 Z
11
+ date: 2015-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-zero
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  description: A library to manipulate Chef in Chef.
70
- email: jkeiser@opscode.com
70
+ email: jkeiser@chef.io
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files:
@@ -117,9 +117,13 @@ files:
117
117
  - lib/cheffish/key_formatter.rb
118
118
  - lib/cheffish/merged_config.rb
119
119
  - lib/cheffish/recipe_dsl.rb
120
+ - lib/cheffish/rspec.rb
120
121
  - lib/cheffish/rspec/chef_run_support.rb
121
- - lib/cheffish/rspec/chef_run_wrapper.rb
122
122
  - lib/cheffish/rspec/matchers.rb
123
+ - lib/cheffish/rspec/matchers/be_idempotent.rb
124
+ - lib/cheffish/rspec/matchers/emit_no_warnings_or_errors.rb
125
+ - lib/cheffish/rspec/matchers/have_updated.rb
126
+ - lib/cheffish/rspec/matchers/partially_match.rb
123
127
  - lib/cheffish/rspec/recipe_run_wrapper.rb
124
128
  - lib/cheffish/rspec/repository_support.rb
125
129
  - lib/cheffish/server_api.rb
@@ -140,7 +144,7 @@ files:
140
144
  - spec/support/key_support.rb
141
145
  - spec/support/spec_support.rb
142
146
  - spec/unit/get_private_key_spec.rb
143
- homepage: http://wiki.opscode.com/display/chef
147
+ homepage: http://github.com/chef/cheffish
144
148
  licenses: []
145
149
  metadata: {}
146
150
  post_install_message:
@@ -159,8 +163,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
163
  version: '0'
160
164
  requirements: []
161
165
  rubyforge_project:
162
- rubygems_version: 2.4.2
166
+ rubygems_version: 2.4.4
163
167
  signing_key:
164
168
  specification_version: 4
165
169
  summary: A library to manipulate Chef in Chef.
166
170
  test_files: []
171
+ has_rdoc:
@@ -1,5 +0,0 @@
1
- require 'cheffish/chef_run'
2
-
3
- module Cheffish::RSpec
4
- ChefRunWrapper = Cheffish::ChefRun
5
- end