puppetlabs_spec_helper 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,28 @@
1
+ 2014-06-09 - Release 0.5.1
2
+ Summary:
3
+ This release re-adds mocha mocking, which was mistakenly removed in 0.5.0
4
+
5
+ Bugfixes:
6
+ - Re-enable mocha mocking as default.
7
+
8
+ 2014-06-06 - Release 0.5.0
9
+ Summary:
10
+ This is the first feature release in over a year. The biggest feature is fixtures supporting the forge, and not just github, plus rake tasks for syntax checking and beaker.
11
+
12
+ Features:
13
+ - Install modules from the forge, not just git
14
+ - Beaker rake tasks added
15
+ - Syntax task added
16
+ - Rake spec runs tests in `integration/` directory
17
+
18
+ Bugfixes:
19
+ - Fix the gemspec so that this may be used with bundler
20
+ - Fix removal of symlinks
21
+ - Fix removal of site.pp only when empty
22
+ - Ignore fixtures for linting
23
+ - Remove extra mocha dependency
24
+ - Remove rspec pinning (oops)
25
+
1
26
  2014-06-06 - Release 0.4.2
2
27
 
3
28
  Summary:
@@ -3,8 +3,12 @@ require 'puppetlabs_spec_helper/puppetlabs_spec_helper'
3
3
  # Don't want puppet getting the command line arguments for rake or autotest
4
4
  ARGV.clear
5
5
 
6
+ # This is needed because we're using mocha with rspec instead of Test::Unit or MiniTest
7
+ ENV['MOCHA_OPTIONS']='skip_integration'
8
+
6
9
  require 'puppet'
7
10
  require 'rspec/expectations'
11
+ require 'mocha/api'
8
12
 
9
13
  require 'pathname'
10
14
  require 'tmpdir'
@@ -148,6 +152,8 @@ end
148
152
 
149
153
  # And here is where we do the main rspec configuration / setup.
150
154
  RSpec.configure do |config|
155
+ config.mock_with :mocha
156
+
151
157
  # determine whether we can use the new API or not, and call the appropriate initializer method.
152
158
  if (defined?(Puppet::Test::TestHelper))
153
159
  Puppet::PuppetSpecInitializer.initialize_via_testhelper(config)
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
2
  module Version
3
- STRING = '0.5.0'
3
+ STRING = '0.5.1'
4
4
  end
5
5
  end
@@ -22,4 +22,5 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency 'puppet'
23
23
  s.add_runtime_dependency 'puppet-lint'
24
24
  s.add_runtime_dependency 'rspec'
25
+ s.add_runtime_dependency 'mocha'
25
26
  end
metadata CHANGED
@@ -1,83 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetlabs_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Puppet Labs
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-06-06 00:00:00.000000000 Z
12
+ date: 2014-06-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rspec-puppet
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: puppet
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: puppet-lint
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rspec
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: mocha
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
81
108
  - !ruby/object:Gem::Version
82
109
  version: '0'
83
110
  description: Contains rake tasks and a standard spec_helper for running spec tests
@@ -114,29 +141,31 @@ files:
114
141
  homepage: http://github.com/puppetlabs/puppetlabs_spec_helper
115
142
  licenses:
116
143
  - Apache-2.0
117
- metadata: {}
118
144
  post_install_message:
119
145
  rdoc_options: []
120
146
  require_paths:
121
147
  - lib
122
148
  required_ruby_version: !ruby/object:Gem::Requirement
149
+ none: false
123
150
  requirements:
124
- - - '>='
151
+ - - ! '>='
125
152
  - !ruby/object:Gem::Version
126
153
  version: '0'
127
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
+ none: false
128
156
  requirements:
129
- - - '>='
157
+ - - ! '>='
130
158
  - !ruby/object:Gem::Version
131
159
  version: '0'
132
160
  requirements: []
133
161
  rubyforge_project:
134
- rubygems_version: 2.0.14
162
+ rubygems_version: 1.8.23.2
135
163
  signing_key:
136
- specification_version: 4
164
+ specification_version: 3
137
165
  summary: Standard tasks and configuration for module spec tests
138
166
  test_files:
139
167
  - spec/lib/puppet/type/spechelper.rb
140
168
  - spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb
141
169
  - spec/unit/spechelper_spec.rb
142
170
  - spec/watchr.rb
171
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f853c33fa6a79d464edde31b1b1e860145394dfa
4
- data.tar.gz: c9e8ce7b36ea0efc45394bf8c1d7f3b0e53761b6
5
- SHA512:
6
- metadata.gz: d09259b7c9942c87e2012c41af6771aa8b8d3a3320d9140f814228c86e740baeabb755b29d81416c64abcf7980b434380a5911be0a5cab910134010f399bc7d1
7
- data.tar.gz: 9a9f143383c5d85044ac1311b7461f4a15b34021b9a4908cc2083b69fec7d5026a62b997e31d7169cdd39ff78d64c345e21abbd413a3b3ecfb313450baacf77d