puppetlabs_spec_helper 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
2013-02-08 Puppet Labs <info@puppetlabs.com> - 0.4.1
|
2
|
+
* (#18165) Mark tests pending on broken puppet versions
|
3
|
+
* (#18165) Initialize TestHelper as soon as possible
|
4
|
+
* Maint: Change formatting and handle windows path separator
|
5
|
+
|
6
|
+
2012-12-14 Puppet Labs <info@puppetlabs.com> - 0.4.0
|
2
7
|
* Rake should fail if git can't clone repository
|
3
8
|
* Add readme for fixtures
|
4
9
|
* Fix Mocha deprecations
|
@@ -16,7 +16,7 @@ fixture_path = File.expand_path(File.join(Dir.pwd, 'spec/fixtures'))
|
|
16
16
|
env_module_path = ENV['MODULEPATH']
|
17
17
|
module_path = File.join(fixture_path, 'modules')
|
18
18
|
|
19
|
-
module_path = [module_path, env_module_path].join(
|
19
|
+
module_path = [module_path, env_module_path].join(File::PATH_SEPARATOR) if env_module_path
|
20
20
|
|
21
21
|
RSpec.configure do |c|
|
22
22
|
c.module_path = module_path
|
@@ -43,21 +43,27 @@ module Puppet
|
|
43
43
|
# should be fairly future-proof as long as that API doesn't change, which it
|
44
44
|
# hopefully will not need to.
|
45
45
|
def self.initialize_via_testhelper(config)
|
46
|
+
begin
|
47
|
+
Puppet::Test::TestHelper.initialize
|
48
|
+
rescue NoMethodError
|
49
|
+
Puppet::Test::TestHelper.before_each_test
|
50
|
+
end
|
51
|
+
|
46
52
|
# connect rspec hooks to TestHelper methods.
|
47
53
|
config.before :all do
|
48
|
-
Puppet::Test::TestHelper.before_all_tests
|
54
|
+
Puppet::Test::TestHelper.before_all_tests
|
49
55
|
end
|
50
56
|
|
51
57
|
config.after :all do
|
52
|
-
Puppet::Test::TestHelper.after_all_tests
|
58
|
+
Puppet::Test::TestHelper.after_all_tests
|
53
59
|
end
|
54
60
|
|
55
61
|
config.before :each do
|
56
|
-
Puppet::Test::TestHelper.before_each_test
|
62
|
+
Puppet::Test::TestHelper.before_each_test
|
57
63
|
end
|
58
64
|
|
59
65
|
config.after :each do
|
60
|
-
Puppet::Test::TestHelper.after_each_test
|
66
|
+
Puppet::Test::TestHelper.after_each_test
|
61
67
|
end
|
62
68
|
end
|
63
69
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppetlabs_spec_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Puppet Labs
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-02-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|