spec/unit/berkshelf/ui_spec.rb in berkshelf-3.0.0.beta4 vs spec/unit/berkshelf/ui_spec.rb in berkshelf-3.0.0.beta5
- old
+ new
@@ -110,11 +110,11 @@
context 'when quiet?' do
before do
subject.stub(:quiet?).and_return(true)
end
- it 'does not output anything', :not_supported_on_windows do
- stdout.should_not_receive(:puts)
+ it "outputs an error message", :not_supported_on_windows do
+ stderr.should_receive(:puts)
subject.error 'error!'
end
end
context 'with not quiet?' do