test/unit/plugins/commands/ssh_config/command_test.rb in vagrant-unbundled-1.9.7.1 vs test/unit/plugins/commands/ssh_config/command_test.rb in vagrant-unbundled-1.9.8.1
- old
+ new
@@ -30,10 +30,10 @@
}}
subject { described_class.new(argv, iso_env) }
before do
- machine.stub(ssh_info: ssh_info)
+ allow(machine).to receive(:ssh_info).and_return(ssh_info)
allow(subject).to receive(:with_target_vms) { |&block| block.call machine }
end
describe "execute" do
it "prints out the ssh config for the given machine" do