From 9ec16774ace424cdf8c2d7d60a7c90c2ea9b3e7d Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 9 Dec 2014 00:08:23 -0800 Subject: [PATCH] Fix failing specs --- test/unit/plugins/commands/login/client_test.rb | 2 +- test/unit/plugins/pushes/atlas/config_test.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"