beaker-rspec 2.2.5 → 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWUyNmRhOGNjM2VmZTE1ZTFmNDM5NjM2YWZlNTJjZTdjODE1NWMxYg==
4
+ YjBlMDE4YWYyYmI4NTkyZDI0OGEzNTQ0NjcxZTczYjhhNDM2MGZmOQ==
5
5
  data.tar.gz: !binary |-
6
- YzI4MDliNjViZmZlZDdkMzBmODZmMmExMWQyZmY2OTA2NzliMjczYw==
6
+ YjlkNDQzZWM5MTQzOWI4ZTgwMDZjZTU0NzJiNTA0OGM3ODMyZTdhYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWIxNGViOWJhMTIwNjM4Yjc3OTBlNWE3MmZkNDVjNDhkNDgyYjYyMWU4MjE0
10
- YTYwZTFkNGVkNDc0MTZkOGNiZjhkZWFkN2E2ODEyZGI2NmMzNDZhMTNkOWQ5
11
- ZmJiYTNmYjBiN2Q1ZTRiOWU4YjQ1YmRmZDMwMWUxNTY5Yzk1OWY=
9
+ OTZiNDQ0Y2EwMTM4NWRhYzViZmU3NjYzOWU3MjgzOGVhMWUxYzgxNGVkY2Ri
10
+ YjkyMWYwZDkyODllZDk4ZDFmNzRmYTI5Njc0OWE5MmMyYWYzYTkyZDYyMmQ0
11
+ MWVkNWQ5MDgyNzIxZTY0YTlkZjIzYTM0ODU0ZTFjYWEzYzJkN2Q=
12
12
  data.tar.gz: !binary |-
13
- OGIwNzA4NGRkMGYyNjVhODBiNjFlYWY5ZTAzNGUzODYzMTVkNWZmYWYwMGZh
14
- ZjQ0YjJkMjAzMzBlNGZhNDZmODNhMTU2NTc1NTJjMmIzN2I5NWY0NzE5YmQ5
15
- NjkxOTlhN2RhODZhNGQ4ODMzMmNlYTgyZmY4NWMxZWQ1OTNjNTQ=
13
+ ODcwNWY0MmM0ZjhkN2UwZjI1MjE2OTkyMjQ5N2E5NTU1NGQxNzExNGFkMTA5
14
+ ZGUxNzEwZjI4MTg5ZTdjMzNhNGYzYjViY2IyNDY4ZDg0YTQ1ZWIwYmFmNjBm
15
+ NmY0Yzg3MWEzNzU1ZjA4NjBlMTBiMDBlMDRkZjQ4YTg0ODQ3OTY=
data/beaker-rspec.gemspec CHANGED
@@ -6,7 +6,7 @@ less_than_one_nine = ruby_conf['MAJOR'].to_i == 1 && ruby_conf['MINOR'].to_i < 9
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "beaker-rspec"
9
- s.version = '2.2.5'
9
+ s.version = '2.2.6'
10
10
  s.authors = ["Puppetlabs"]
11
11
  s.email = ["sqa@puppetlabs.com"]
12
12
  s.homepage = "https://github.com/puppetlabs/beaker-rspec"
@@ -12,7 +12,7 @@ module BeakerRSpec
12
12
  # Accessor for logger
13
13
  # @return Beaker::Logger object
14
14
  def logger
15
- @logger
15
+ RSpec.configuration.logger
16
16
  end
17
17
 
18
18
  # Accessor for options hash
@@ -50,8 +50,8 @@ module BeakerRSpec
50
50
  options_parser = Beaker::Options::Parser.new
51
51
  options = options_parser.parse_args(args)
52
52
  options[:debug] = true
53
- @logger = Beaker::Logger.new(options)
54
- options[:logger] = @logger
53
+ RSpec.configuration.logger = Beaker::Logger.new(options)
54
+ options[:logger] = logger
55
55
  RSpec.configuration.hosts = []
56
56
  RSpec.configuration.options = options
57
57
  end
@@ -10,6 +10,8 @@ RSpec.configure do |c|
10
10
  c.add_setting :hosts, :default => []
11
11
  # Define persistant options setting
12
12
  c.add_setting :options, :default => {}
13
+ # Define persistant logger object
14
+ c.add_setting :logger, :default => nil
13
15
 
14
16
  #default option values
15
17
  defaults = {
@@ -12,6 +12,11 @@ describe "ignore" do
12
12
  install_pe
13
13
  end
14
14
 
15
+ example "access the logger" do
16
+ logger.debug("hi, i'm a debug message")
17
+ logger.notify("hi, I'm a notify message")
18
+ end
19
+
15
20
  hosts.each do |node|
16
21
  describe service('ssh'), :node => node do
17
22
  it { should be_running }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest