serverspec 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/lib/serverspec/backend/exec.rb +17 -13
  3. data/lib/serverspec/helper/detect_os.rb +4 -5
  4. data/lib/serverspec/version.rb +1 -1
  5. data/spec/aix/command_spec.rb +1 -3
  6. data/spec/aix/cron_spec.rb +1 -3
  7. data/spec/aix/default_gateway_spec.rb +1 -3
  8. data/spec/aix/file_spec.rb +1 -3
  9. data/spec/aix/group_spec.rb +1 -3
  10. data/spec/aix/host_spec.rb +1 -3
  11. data/spec/aix/package_spec.rb +1 -3
  12. data/spec/aix/php_config_spec.rb +1 -3
  13. data/spec/aix/port_spec.rb +1 -3
  14. data/spec/aix/routing_table_spec.rb +1 -3
  15. data/spec/aix/service_spec.rb +1 -3
  16. data/spec/aix/user_spec.rb +1 -3
  17. data/spec/backend/cmd/configuration_spec.rb +0 -4
  18. data/spec/backend/winrm/configuration_spec.rb +0 -4
  19. data/spec/darwin/command_spec.rb +1 -3
  20. data/spec/darwin/cron_spec.rb +1 -3
  21. data/spec/darwin/default_gateway_spec.rb +1 -3
  22. data/spec/darwin/file_spec.rb +1 -3
  23. data/spec/darwin/group_spec.rb +1 -3
  24. data/spec/darwin/host_spec.rb +1 -3
  25. data/spec/darwin/mail_alias_spec.rb +1 -3
  26. data/spec/darwin/package_spec.rb +1 -3
  27. data/spec/darwin/php_config_spec.rb +1 -3
  28. data/spec/darwin/port_spec.rb +1 -3
  29. data/spec/darwin/routing_table_spec.rb +1 -3
  30. data/spec/darwin/service_spec.rb +1 -3
  31. data/spec/darwin/user_spec.rb +1 -3
  32. data/spec/debian/cgroup_spec.rb +1 -3
  33. data/spec/debian/command_spec.rb +1 -3
  34. data/spec/debian/cron_spec.rb +1 -3
  35. data/spec/debian/default_gateway_spec.rb +1 -3
  36. data/spec/debian/file_spec.rb +1 -3
  37. data/spec/debian/group_spec.rb +1 -3
  38. data/spec/debian/host_spec.rb +1 -3
  39. data/spec/debian/interface_spec.rb +1 -3
  40. data/spec/debian/iptables_spec.rb +1 -3
  41. data/spec/debian/kernel_module_spec.rb +1 -3
  42. data/spec/debian/linux_kernel_parameter_spec.rb +1 -3
  43. data/spec/debian/lxc_spec.rb +1 -3
  44. data/spec/debian/mail_alias_spec.rb +1 -3
  45. data/spec/debian/package_spec.rb +1 -3
  46. data/spec/debian/php_config_spec.rb +1 -3
  47. data/spec/debian/port_spec.rb +1 -3
  48. data/spec/debian/routing_table_spec.rb +1 -3
  49. data/spec/debian/selinux_spec.rb +1 -3
  50. data/spec/debian/service_spec.rb +1 -3
  51. data/spec/debian/user_spec.rb +1 -3
  52. data/spec/debian/zfs_spec.rb +1 -3
  53. data/spec/freebsd/command_spec.rb +1 -1
  54. data/spec/freebsd/cron_spec.rb +1 -3
  55. data/spec/freebsd/default_gateway_spec.rb +1 -3
  56. data/spec/freebsd/file_spec.rb +1 -3
  57. data/spec/freebsd/group_spec.rb +1 -3
  58. data/spec/freebsd/host_spec.rb +1 -3
  59. data/spec/freebsd/package_spec.rb +1 -3
  60. data/spec/freebsd/php_config_spec.rb +1 -3
  61. data/spec/freebsd/port_spec.rb +1 -3
  62. data/spec/freebsd/routing_table_spec.rb +1 -3
  63. data/spec/freebsd/service_spec.rb +1 -3
  64. data/spec/freebsd/user_spec.rb +1 -3
  65. data/spec/gentoo/cgroup_spec.rb +1 -3
  66. data/spec/gentoo/command_spec.rb +1 -3
  67. data/spec/gentoo/cron_spec.rb +1 -3
  68. data/spec/gentoo/default_gateway_spec.rb +1 -3
  69. data/spec/gentoo/file_spec.rb +1 -1
  70. data/spec/gentoo/group_spec.rb +1 -3
  71. data/spec/gentoo/host_spec.rb +1 -3
  72. data/spec/gentoo/interface_spec.rb +1 -3
  73. data/spec/gentoo/iptables_spec.rb +1 -3
  74. data/spec/gentoo/kernel_module_spec.rb +1 -3
  75. data/spec/gentoo/linux_kernel_parameter_spec.rb +1 -3
  76. data/spec/gentoo/lxc_spec.rb +1 -3
  77. data/spec/gentoo/mail_alias_spec.rb +1 -3
  78. data/spec/gentoo/package_spec.rb +1 -3
  79. data/spec/gentoo/php_config_spec.rb +1 -3
  80. data/spec/gentoo/port_spec.rb +1 -3
  81. data/spec/gentoo/routing_table_spec.rb +1 -3
  82. data/spec/gentoo/selinux_spec.rb +1 -3
  83. data/spec/gentoo/service_spec.rb +1 -3
  84. data/spec/gentoo/user_spec.rb +1 -3
  85. data/spec/gentoo/zfs_spec.rb +1 -3
  86. data/spec/plamo/cgroup_spec.rb +1 -3
  87. data/spec/plamo/command_spec.rb +1 -3
  88. data/spec/plamo/cron_spec.rb +1 -3
  89. data/spec/plamo/default_gateway_spec.rb +1 -3
  90. data/spec/plamo/file_spec.rb +1 -3
  91. data/spec/plamo/group_spec.rb +1 -3
  92. data/spec/plamo/host_spec.rb +1 -3
  93. data/spec/plamo/interface_spec.rb +1 -3
  94. data/spec/plamo/iptables_spec.rb +1 -3
  95. data/spec/plamo/kernel_module_spec.rb +1 -3
  96. data/spec/plamo/linux_kernel_parameter_spec.rb +1 -3
  97. data/spec/plamo/lxc_spec.rb +1 -3
  98. data/spec/plamo/mail_alias_spec.rb +1 -3
  99. data/spec/plamo/package_spec.rb +1 -3
  100. data/spec/plamo/php_config_spec.rb +1 -3
  101. data/spec/plamo/port_spec.rb +1 -3
  102. data/spec/plamo/routing_table_spec.rb +1 -3
  103. data/spec/plamo/selinux_spec.rb +1 -3
  104. data/spec/plamo/service_spec.rb +1 -3
  105. data/spec/plamo/user_spec.rb +1 -3
  106. data/spec/plamo/zfs_spec.rb +1 -3
  107. data/spec/redhat/cgroup_spec.rb +1 -3
  108. data/spec/redhat/command_spec.rb +1 -3
  109. data/spec/redhat/cron_spec.rb +1 -3
  110. data/spec/redhat/default_gateway_spec.rb +1 -3
  111. data/spec/redhat/file_spec.rb +1 -3
  112. data/spec/redhat/group_spec.rb +1 -3
  113. data/spec/redhat/host_spec.rb +1 -3
  114. data/spec/redhat/interface_spec.rb +1 -3
  115. data/spec/redhat/iptables_spec.rb +1 -3
  116. data/spec/redhat/kernel_module_spec.rb +1 -3
  117. data/spec/redhat/linux_kernel_parameter_spec.rb +1 -3
  118. data/spec/redhat/lxc_spec.rb +1 -3
  119. data/spec/redhat/mail_alias_spec.rb +1 -3
  120. data/spec/redhat/package_spec.rb +1 -3
  121. data/spec/redhat/php_config_spec.rb +1 -3
  122. data/spec/redhat/port_spec.rb +1 -3
  123. data/spec/redhat/routing_table_spec.rb +1 -3
  124. data/spec/redhat/selinux_spec.rb +1 -3
  125. data/spec/redhat/service_spec.rb +1 -3
  126. data/spec/redhat/user_spec.rb +1 -3
  127. data/spec/redhat/yumrepo_spec.rb +1 -3
  128. data/spec/redhat/zfs_spec.rb +1 -3
  129. data/spec/smartos/mail_alias_spec.rb +1 -3
  130. data/spec/solaris10/mail_alias_spec.rb +1 -3
  131. data/spec/solaris10/php_config_spec.rb +1 -3
  132. data/spec/solaris11/command_spec.rb +1 -3
  133. data/spec/solaris11/cron_spec.rb +1 -3
  134. data/spec/solaris11/default_gateway_spec.rb +1 -3
  135. data/spec/solaris11/file_spec.rb +1 -3
  136. data/spec/solaris11/group_spec.rb +1 -3
  137. data/spec/solaris11/host_spec.rb +1 -3
  138. data/spec/solaris11/ipfilter_spec.rb +1 -3
  139. data/spec/solaris11/ipnat_spec.rb +1 -3
  140. data/spec/solaris11/mail_alias_spec.rb +1 -3
  141. data/spec/solaris11/package_spec.rb +1 -3
  142. data/spec/solaris11/php_config_spec.rb +1 -3
  143. data/spec/solaris11/port_spec.rb +1 -3
  144. data/spec/solaris11/routing_table_spec.rb +1 -3
  145. data/spec/solaris11/service_spec.rb +1 -3
  146. data/spec/solaris11/svcprop_spec.rb +1 -3
  147. data/spec/solaris11/user_spec.rb +1 -3
  148. data/spec/solaris11/zfs_spec.rb +1 -3
  149. data/spec/spec_helper.rb +0 -1
  150. data/spec/windows/command_spec.rb +1 -3
  151. data/spec/windows/file_spec.rb +1 -3
  152. data/spec/windows/group_spec.rb +1 -3
  153. data/spec/windows/port_spec.rb +1 -3
  154. data/spec/windows/service_spec.rb +2 -4
  155. data/spec/windows/user_spec.rb +1 -3
  156. data/spec/windows/windows_registry_key_spec.rb +1 -3
  157. metadata +2 -2
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe interface('eth0') do
8
6
  let(:stdout) { '1000' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe iptables do
8
6
  it { should have_rule '-P INPUT ACCEPT' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe kernel_module('lp') do
8
6
  it { should be_loaded }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe linux_kernel_parameter('net.ipv4.tcp_syncookies') do
8
6
  let(:stdout) { "1\n" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe lxc('ct01') do
8
6
  it { should exist }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe mail_alias('daemon') do
8
6
  it { should be_aliased_to "root" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe package('httpd') do
8
6
  it { should be_installed }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe php_config('default_mimetype') do
8
6
  let(:stdout) { 'text/html' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe port(80) do
8
6
  it { should be_listening }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe routing_table do
8
6
  let(:stdout) { "192.168.100.0/24 dev eth1 proto kernel scope link src 192.168.100.10 \r\ndefault via 192.168.100.1 dev eth0 \r\n" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe selinux do
8
6
  it { should be_enforcing }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe service('sshd') do
8
6
  it { should be_enabled }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe user('root') do
8
6
  it { should exist }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe 'Serverspec yumrepo matchers of Red Hat family' do
8
6
  describe 'exist' do
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'RedHat'
5
- end
3
+ include Serverspec::Helper::RedHat
6
4
 
7
5
  describe zfs('rpool') do
8
6
  it { should exist }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'SmartOS'
5
- end
3
+ include Serverspec::Helper::SmartOS
6
4
 
7
5
  describe mail_alias('daemon') do
8
6
  it { should be_aliased_to "root" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris10'
5
- end
3
+ include Serverspec::Helper::Solaris10
6
4
 
7
5
  describe mail_alias('daemon') do
8
6
  it { should be_aliased_to "root" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris10'
5
- end
3
+ include Serverspec::Helper::Solaris10
6
4
 
7
5
  describe php_config('default_mimetype') do
8
6
  let(:stdout) { 'text/html' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe command('cat /etc/resolv.conf') do
8
6
  let(:stdout) { "nameserver 127.0.0.1\r\n" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe cron do
8
6
  it { should have_entry '* * * * * /usr/local/bin/batch.sh' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe default_gateway do
8
6
  let(:stdout) { "default via 192.168.1.1 dev eth1 \r\n" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe file('/etc/ssh/sshd_config') do
8
6
  it { should be_file }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe group('root') do
8
6
  it { should exist }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe host('127.0.0.1') do
8
6
  it { should be_resolvable }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe ipfilter do
8
6
  it { should have_rule 'pass in quick on lo0 all' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe ipnat do
8
6
  it { should have_rule 'map net1 192.168.0.0/24 -> 0.0.0.0/32' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe mail_alias('daemon') do
8
6
  it { should be_aliased_to "root" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe package('httpd') do
8
6
  it { should be_installed }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe php_config('default_mimetype') do
8
6
  let(:stdout) { 'text/html' }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe port(80) do
8
6
  it { should be_listening }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe routing_table do
8
6
  let(:stdout) { "192.168.100.0/24 dev eth1 proto kernel scope link src 192.168.100.10 \r\ndefault via 192.168.100.1 dev eth0 \r\n" }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe service('sshd') do
8
6
  it { should be_enabled }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe service('svc:/network/http:apache22') do
8
6
  it { should have_property 'httpd/enable_64bit' => false }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe user('root') do
8
6
  it { should exist }
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.configure do |c|
4
- c.os = 'Solaris11'
5
- end
3
+ include Serverspec::Helper::Solaris11
6
4
 
7
5
  describe zfs('rpool') do
8
6
  it { should exist }
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,6 @@ require 'pathname'
3
3
  require 'rspec/mocks/standalone'
4
4
 
5
5
  include Serverspec::Helper::Exec
6
- include Serverspec::Helper::DetectOS
7
6
 
8
7
  PROJECT_ROOT = (Pathname.new(File.dirname(__FILE__)) + '..').expand_path
9
8
 
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  include Serverspec::Helper::Cmd
4
- RSpec.configure do |c|
5
- c.os = 'Windows'
6
- end
4
+ include Serverspec::Helper::Windows
7
5
 
8
6
  describe command('test_cmd /test/path/file') do
9
7
  let(:stdout) { "test output 1.2.3\r\n" }
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  include Serverspec::Helper::Cmd
4
- RSpec.configure do |c|
5
- c.os = 'Windows'
6
- end
4
+ include Serverspec::Helper::Windows
7
5
 
8
6
  describe file('/some/valid/file') do
9
7
  it { should be_file }
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  include Serverspec::Helper::Cmd
4
- RSpec.configure do |c|
5
- c.os = 'Windows'
6
- end
4
+ include Serverspec::Helper::Windows
7
5
 
8
6
  describe group('test.group') do
9
7
  it { should exist }
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  include Serverspec::Helper::Cmd
4
- RSpec.configure do |c|
5
- c.os = 'Windows'
6
- end
4
+ include Serverspec::Helper::Windows
7
5
 
8
6
  describe port(80) do
9
7
  it { should be_listening }
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  include Serverspec::Helper::Cmd
4
- RSpec.configure do |c|
5
- c.os = 'Windows'
6
- end
4
+ include Serverspec::Helper::Windows
7
5
 
8
6
  describe service('Test Service') do
9
7
  it { should be_enabled }
@@ -30,4 +28,4 @@ describe service('Test service') do
30
28
  it "should raise error if trying to check service monitoring" do
31
29
  expect { should_not be_monitored_by('monit') }.to raise_error
32
30
  end
33
- end
31
+ end
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  include Serverspec::Helper::Cmd
4
- RSpec.configure do |c|
5
- c.os = 'Windows'
6
- end
4
+ include Serverspec::Helper::Windows
7
5
 
8
6
  describe user('test.user') do
9
7
  it { should exist }
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  include Serverspec::Helper::Cmd
4
- RSpec.configure do |c|
5
- c.os = 'Windows'
6
- end
4
+ include Serverspec::Helper::Windows
7
5
 
8
6
  describe windows_registry_key('PATH/TO/THE_KEY') do
9
7
  it { should exist }
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.11.1
4
+ version: 0.11.2
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-11-13 00:00:00.000000000 Z
11
+ date: 2013-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh