serverspec 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cee837bc682c1e0815a22113fa54f290007b0c7
4
- data.tar.gz: 50567e0c4c69ae9c4a14bd7e577439e434b99043
3
+ metadata.gz: f4ca52869f2dbc6844fcf25e2b8da41d0e8222c0
4
+ data.tar.gz: 6d3246e665018ec15dedd4af1a02e3f3c44160b2
5
5
  SHA512:
6
- metadata.gz: 4121c1dce84f82991fb33e289a442316e2844545382cb3819b4458691d211c9a53960472868522ecd33725be29caf4fd9bdeac5fbc1bc6d6c70a330ae78a4fd3
7
- data.tar.gz: 6b35b5f3b0301857fc1c77bb599ca2e6d5f0ab031d762cf38a09b0e3bf3e1c32973ad0d69efad7a70dfa518d5d088c41403085ae2edb3a755b8bed8ab2da50e9
6
+ metadata.gz: 11a40531de1b48b20cf721585eb1f84be4b0e64d20ce88eda609e7525a04707da816040f579e845d3578dbe2ef2faf16ee723437220f93b6310c3b19ef70207d
7
+ data.tar.gz: 59233246cfcf4d87be4601b914a9cb15390f64afe2488d177146fdb98239328a65c16ca251a24b58b4c7a1a22ab85513058756449c273c43f4d1e3e506a5fbab
data/lib/serverspec.rb CHANGED
@@ -17,6 +17,7 @@ module RSpec
17
17
  def dump_failure_info(example)
18
18
  exception = example.execution_result[:exception]
19
19
  exception_class_name = exception_class_name_for(exception)
20
+ output.puts "#{long_padding}#{failure_color("On host `#{SpecInfra.configuration.host}`")}"
20
21
  output.puts "#{long_padding}#{failure_color("Failure/Error:")} #{failure_color(read_failed_line(exception, example).strip)}"
21
22
  output.puts "#{long_padding}#{failure_color(exception_class_name)}: #{failure_color(exception.message)}" unless exception_class_name =~ /RSpec/
22
23
  output.puts "#{long_padding} #{failure_color(example.metadata[:command])}" if example.metadata[:command]
@@ -32,6 +33,7 @@ module RSpec
32
33
  def dump_failure_info(example)
33
34
  exception = example.execution_result[:exception]
34
35
  exception_class_name = exception_class_name_for(exception)
36
+ output.puts "#{long_padding}#{failure_color("On host `#{SpecInfra.configuration.host}`")}"
35
37
  output.puts "#{long_padding}#{failure_color("Failure/Error:")} #{failure_color(read_failed_line(exception, example).strip)}"
36
38
  output.puts "#{long_padding}#{failure_color(exception_class_name)}: #{failure_color(exception.message)}" unless exception_class_name =~ /RSpec/
37
39
  output.puts "#{long_padding} #{failure_color(example.metadata[:command])}" if example.metadata[:command]
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "1.9.0"
2
+ VERSION = "1.9.1"
3
3
  end
@@ -4,7 +4,7 @@ include SpecInfra::Helper::AIX
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::Darwin
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::Debian
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::Fedora
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::FreeBSD
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::Gentoo
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::Plamo
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::RedHat
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::Solaris
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
@@ -4,7 +4,7 @@ include SpecInfra::Helper::Solaris11
4
4
 
5
5
  describe group('root') do
6
6
  it { should exist }
7
- its(:command) { should eq "getent group | grep -wq -- root" }
7
+ its(:command) { should eq "getent group root" }
8
8
  end
9
9
 
10
10
  describe group('invalid-group') do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-11 00:00:00.000000000 Z
11
+ date: 2014-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh