spec/shelly/cli/deploy_spec.rb in shelly-0.2.28 vs spec/shelly/cli/deploy_spec.rb in shelly-0.3.0

- old
+ new

@@ -16,11 +16,11 @@ describe "#list" do before do FileUtils.mkdir_p("/projects/foo") Dir.chdir("/projects/foo") File.open("Cloudfile", 'w') {|f| f.write("foo-staging:\n") } - @client.stub(:token).and_return("abc") + @client.stub(:authorize!) end it "should ensure user has logged in" do hooks(@deploys, :list).should include(:logged_in?) end @@ -53,10 +53,10 @@ describe "#show" do before do FileUtils.mkdir_p("/projects/foo") Dir.chdir("/projects/foo") File.open("Cloudfile", 'w') {|f| f.write("foo-staging:\n") } - @client.stub(:token).and_return("abc") + @client.stub(:authorize!) end it "should ensure user has logged in" do hooks(@deploys, :show).should include(:logged_in?) end