spec/kontena/cli/nodes/remove_command_spec.rb in kontena-cli-1.4.0 vs spec/kontena/cli/nodes/remove_command_spec.rb in kontena-cli-1.4.1.pre1
- old
+ new
@@ -47,10 +47,10 @@
end
it 'does not remove the node' do
expect(client).not_to receive(:delete)
- expect{subject.run(['node-1'])}.to output(" [error] Node node-1 is still online. You must terminate the node before removing it.\n").to_stderr
+ expect{subject.run(['node-1'])}.to exit_with_error.and output(" [error] Node node-1 is still connected using a grid token. You must terminate the node before removing it.\n").to_stderr
end
end
context 'for an online node with a node token' do
let :node do