minitest-chef-handler 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.6.4 / 12-02-2012
2
+
3
+ * 1 bug fix:
4
+
5
+ * No longer directly include MiniTest::Assertions in order to avoid using the wrong mixins.
6
+ Resolves issue 34. Reported by Leif Madsen (@leifmadsen). Fix suggested by Andrew Crump (@acrmp).
7
+
1
8
  === 0.6.3 / 09-25-2012
2
9
 
3
10
  * 1 bug fix:
@@ -35,10 +35,10 @@ module MiniTest
35
35
  register_resource(:mount, :device)
36
36
 
37
37
  ::Chef::Resource.class_eval do
38
- include MiniTest::Assertions
39
38
  def with(attribute, values)
39
+ mt = Object.extend(MiniTest::Assertions)
40
40
  actual_values = resource_value(attribute)
41
- assert_equal values, actual_values,
41
+ mt.assert_equal values, actual_values,
42
42
  "The #{resource_name} does not have the expected #{attribute}"
43
43
  self
44
44
  end
@@ -1,6 +1,7 @@
1
1
  module MiniTest
2
2
  module Chef
3
3
  require 'minitest/spec'
4
+ require 'minitest-chef-handler/assertions'
4
5
 
5
6
  class Spec < MiniTest::Spec
6
7
  include Assertions
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |gem|
3
3
  gem.authors = ["David Calavera"]
4
4
  gem.email = ["david.calavera@gmail.com"]
5
- gem.description = %q{Run Minitest suites as Chef report handlers}
5
+ gem.description = %q{Run minitest suites after your Chef recipes to check the status of your system.}
6
6
  gem.summary = %q{Run Minitest suites as Chef report handlers}
7
7
  gem.homepage = ""
8
8
 
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
12
12
  gem.name = "minitest-chef-handler"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = '0.6.3'
14
+ gem.version = '0.6.4'
15
15
 
16
16
  gem.add_dependency('minitest')
17
17
  gem.add_dependency('chef')
@@ -0,0 +1,18 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ describe MiniTest::Chef::Spec do
4
+
5
+ let(:spec) { Class.new(MiniTest::Chef::Spec).new(:sample_spec) }
6
+
7
+ it "makes the node object available" do
8
+ spec.must_respond_to(:node)
9
+ end
10
+
11
+ it "makes minitest-chef-handler assertions available" do
12
+ spec.must_respond_to(:assert_installed)
13
+ end
14
+
15
+ it "makes minitest-chef-handler resource helpers available" do
16
+ spec.must_respond_to(:package)
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-chef-handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-28 00:00:00.000000000 Z
12
+ date: 2012-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
16
- requirement: &70291652976380 !ruby/object:Gem::Requirement
16
+ requirement: &70236225150940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70291652976380
24
+ version_requirements: *70236225150940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: chef
27
- requirement: &70291652974220 !ruby/object:Gem::Requirement
27
+ requirement: &70236225179100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70291652974220
35
+ version_requirements: *70236225179100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ci_reporter
38
- requirement: &70291652973160 !ruby/object:Gem::Requirement
38
+ requirement: &70236225176920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70291652973160
46
+ version_requirements: *70236225176920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70291652972160 !ruby/object:Gem::Requirement
49
+ requirement: &70236225175900 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,8 +54,9 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70291652972160
58
- description: Run Minitest suites as Chef report handlers
57
+ version_requirements: *70236225175900
58
+ description: Run minitest suites after your Chef recipes to check the status of your
59
+ system.
59
60
  email:
60
61
  - david.calavera@gmail.com
61
62
  executables: []
@@ -105,6 +106,7 @@ files:
105
106
  - spec/minitest-chef-handler/assertions_spec.rb
106
107
  - spec/minitest-chef-handler/infections_spec.rb
107
108
  - spec/minitest-chef-handler/resources_spec.rb
109
+ - spec/minitest-chef-handler/spec_spec.rb
108
110
  - spec/spec_helper.rb
109
111
  homepage: ''
110
112
  licenses: []
@@ -120,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
122
  version: '0'
121
123
  segments:
122
124
  - 0
123
- hash: -2070265890794818443
125
+ hash: 2838979511260289604
124
126
  required_rubygems_version: !ruby/object:Gem::Requirement
125
127
  none: false
126
128
  requirements:
@@ -129,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
131
  version: '0'
130
132
  segments:
131
133
  - 0
132
- hash: -2070265890794818443
134
+ hash: 2838979511260289604
133
135
  requirements: []
134
136
  rubyforge_project:
135
137
  rubygems_version: 1.8.11
@@ -140,4 +142,5 @@ test_files:
140
142
  - spec/minitest-chef-handler/assertions_spec.rb
141
143
  - spec/minitest-chef-handler/infections_spec.rb
142
144
  - spec/minitest-chef-handler/resources_spec.rb
145
+ - spec/minitest-chef-handler/spec_spec.rb
143
146
  - spec/spec_helper.rb