diff --git a/test/unit/plugins/commands/login/client_test.rb b/test/unit/plugins/commands/login/client_test.rb index cad502ccf..7c9480442 100644 --- a/test/unit/plugins/commands/login/client_test.rb +++ b/test/unit/plugins/commands/login/client_test.rb @@ -77,7 +77,7 @@ describe VagrantPlugins::LoginCommand::Client do stub_request(:post, "#{Vagrant.server_url}/api/v1/authenticate"). to_return(status: 401, body: "") - expect(subject.login("foo", "bar")).to be_nil + expect(subject.login("foo", "bar")).to be(false) end it "raises an exception if it can't reach the sever" do diff --git a/test/unit/plugins/pushes/atlas/config_test.rb b/test/unit/plugins/pushes/atlas/config_test.rb index e62a5b86e..1600e967a 100644 --- a/test/unit/plugins/pushes/atlas/config_test.rb +++ b/test/unit/plugins/pushes/atlas/config_test.rb @@ -59,6 +59,7 @@ describe VagrantPlugins::AtlasPush::Config do allow(machine).to receive(:env) .and_return(double("env", root_path: "", + data_dir: Pathname.new(""), )) subject.app = "sethvargo/bacon"