spec/shelly/cli/main_spec.rb in shelly-0.4.24 vs spec/shelly/cli/main_spec.rb in shelly-0.4.25
- old
+ new
@@ -1541,10 +1541,10 @@
context "virtual server not found" do
it "should display error" do
ex = Shelly::Client::NotFoundException.new("resource" => "virtual_server")
@client.stub(:tunnel).and_raise(ex)
@main.options = {:server => "foobar"}
- $stdout.should_receive(:puts).with(red "Virtual Server 'foobar' not found")
+ $stdout.should_receive(:puts).with(red "Virtual server 'foobar' not found or not configured for running console")
lambda {
invoke(@main, :console)
}.should raise_error(SystemExit)
end
end