spec/darwin/command_spec.rb in serverspec-0.15.5 vs spec/darwin/command_spec.rb in serverspec-0.16.0
- old
+ new
@@ -21,25 +21,25 @@
it { should return_stdout(/127\.0\.0\.1/) }
end
end
describe command('cat /etc/resolv.conf') do
- let(:stdout) { "No such file or directory\r\n" }
+ let(:stderr) { "No such file or directory\r\n" }
it { should return_stderr("No such file or directory") }
its(:command) { should eq 'cat /etc/resolv.conf' }
end
describe 'complete matching of stderr' do
context command('cat /etc/resolv.conf') do
- let(:stdout) { "No such file or directory\r\n" }
- it { should_not return_stdout('file') }
+ let(:stderr) { "No such file or directory\r\n" }
+ it { should_not return_stderr('file') }
end
end
describe 'regexp matching of stderr' do
context command('cat /etc/resolv.conf') do
- let(:stdout) { "No such file or directory\r\n" }
+ let(:stderr) { "No such file or directory\r\n" }
it { should return_stderr(/file/) }
end
end
describe command('cat /etc/resolv.conf') do
@@ -59,9 +59,7 @@
drwxr-xr-x 8 root root 4096 Oct 1 15:09 home
EOF
}
its(:stdout) { should match /bin/ }
- its(:stderr) { should match /bin/ }
-
its(:stdout) { should eq stdout }
end