spec/darwin/command_spec.rb in serverspec-0.9.4 vs spec/darwin/command_spec.rb in serverspec-0.9.5
- old
+ new
@@ -1,7 +1,9 @@
require 'spec_helper'
-include Serverspec::Helper::Darwin
+RSpec.configure do |c|
+ c.os = 'Darwin'
+end
describe command('cat /etc/resolv.conf') do
let(:stdout) { "nameserver 127.0.0.1\r\n" }
it { should return_stdout("nameserver 127.0.0.1") }
its(:command) { should eq 'cat /etc/resolv.conf' }