serverspec 0.13.2 → 0.13.3

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: 612119dd623d813332b76e1a25b2ceefe5d2a3a4
4
- data.tar.gz: fc0ac664d82693fb71aead2e8a7e0a7a081a9230
3
+ metadata.gz: 95d8da0ffbf3b43d3b0d0a487a1139274a7ace7b
4
+ data.tar.gz: 9033f985981bca13abcb52ccd0c3b176f31a6073
5
5
  SHA512:
6
- metadata.gz: 5af7c4185e13dee163d8d0b4fb545a5e3bff2e7b0b3a1b212eef5badc26563f968dab386d17748299767b87d694a8133938e6b1edbc9ec0a9f511b985cf469df
7
- data.tar.gz: 7046b22aae6a0e984931e7302d8e9c61619cfd1d010b513e72c2f878b18d8511436791d531841866412729f0d2b9d555830725cb4efd6039d695117d7957f68b
6
+ metadata.gz: 457d3354e927adccffd7ee9fc75a78921c203e8ccdabf38c58e58ba24fc48f87d9ac37a7cd940ab413c50fc17aa7c8ffa57a9d6910ec555f5fcdc7359159d567
7
+ data.tar.gz: f8e11dff56aa715e7934187b2b0e31ff6a739d5ce538d7a6dc69909b53c08f91f699503d5686c9ff4565313d982f0c4581784d0c9961e1c1958c160f5a346a59
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ task :spec => 'spec:all'
6
6
  namespace :spec do
7
7
  oses = %w( darwin debian gentoo plamo redhat aix solaris solaris10 solaris11 smartos windows freebsd)
8
8
 
9
- task :all => [ oses.map {|os| "spec:#{os}" }, :exec, :ssh, :cmd, :winrm, :powershell ].flatten
9
+ task :all => [ oses.map {|os| "spec:#{os}" }, :exec, :ssh, :cmd, :winrm, :powershell, :helper ].flatten
10
10
 
11
11
  oses.each do |os|
12
12
  RSpec::Core::RakeTask.new(os.to_sym) do |t|
@@ -19,4 +19,8 @@ namespace :spec do
19
19
  t.pattern = "spec/backend/#{backend.to_s}/*_spec.rb"
20
20
  end
21
21
  end
22
+
23
+ RSpec::Core::RakeTask.new(:helper) do |t|
24
+ t.pattern = "spec/helper/*_spec.rb"
25
+ end
22
26
  end
@@ -5,3 +5,5 @@ require 'serverspec/helper/backend'
5
5
  require 'serverspec/helper/type'
6
6
  include Serverspec::Helper::Type
7
7
 
8
+ require 'serverspec/helper/properties'
9
+
@@ -0,0 +1,9 @@
1
+ require 'specinfra/properties'
2
+
3
+ module Serverspec
4
+ module Helper
5
+ module Properties
6
+ include SpecInfra::Helper::Properties
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.13.2"
2
+ VERSION = "0.13.3"
3
3
  end
@@ -109,7 +109,7 @@ end
109
109
  describe file('/dev') do
110
110
  let(:stdout) { "755\r\n" }
111
111
  it { should be_readable }
112
- its(:command) { should eq "stat -c %a /dev" }
112
+ its(:command) { should eq "stat -f%Lp /dev" }
113
113
  end
114
114
 
115
115
  describe file('/dev') do
@@ -150,7 +150,7 @@ end
150
150
  describe file('/dev') do
151
151
  let(:stdout) { "755\r\n" }
152
152
  it { should be_writable }
153
- its(:command) { should eq "stat -c %a /dev" }
153
+ its(:command) { should eq "stat -f%Lp /dev" }
154
154
  end
155
155
 
156
156
  describe file('/dev') do
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Properties
4
+
5
+ describe 'Properties Helper' do
6
+ before :all do
7
+ set_property :role => 'proxy'
8
+ end
9
+ subject { property }
10
+ it { should include :role => 'proxy' }
11
+ end
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: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-04 00:00:00.000000000 Z
11
+ date: 2013-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -116,6 +116,7 @@ files:
116
116
  - lib/serverspec/helper.rb
117
117
  - lib/serverspec/helper/backend.rb
118
118
  - lib/serverspec/helper/os.rb
119
+ - lib/serverspec/helper/properties.rb
119
120
  - lib/serverspec/helper/type.rb
120
121
  - lib/serverspec/matchers.rb
121
122
  - lib/serverspec/matchers/be_enabled.rb
@@ -253,6 +254,7 @@ files:
253
254
  - spec/gentoo/service_spec.rb
254
255
  - spec/gentoo/user_spec.rb
255
256
  - spec/gentoo/zfs_spec.rb
257
+ - spec/helper/properties_spec.rb
256
258
  - spec/plamo/cgroup_spec.rb
257
259
  - spec/plamo/command_spec.rb
258
260
  - spec/plamo/cron_spec.rb
@@ -457,6 +459,7 @@ test_files:
457
459
  - spec/gentoo/service_spec.rb
458
460
  - spec/gentoo/user_spec.rb
459
461
  - spec/gentoo/zfs_spec.rb
462
+ - spec/helper/properties_spec.rb
460
463
  - spec/plamo/cgroup_spec.rb
461
464
  - spec/plamo/command_spec.rb
462
465
  - spec/plamo/cron_spec.rb