spec/spanx/config_spec.rb in spanx-0.1.1 vs spec/spanx/config_spec.rb in spanx-0.3.0
- old
+ new
@@ -49,11 +49,11 @@
end
context "config file does not exist" do
let(:file) { "non_existent_file" }
it "should write error to stderr" do
- $stderr.should_receive(:puts).with("Error: Unable to find config_file at #{file}")
- $stderr.should_receive(:puts).with(Spanx::USAGE)
+ $stderr.should_receive(:puts).with("Error: Unable to find config_file at #{file}\n")
+ $stderr.should_receive(:puts).with(Spanx::Usage.usage)
lambda {
Spanx::Config.new(file)
}.should raise_error(SystemExit)
end
end