spec/timber/cli/installers/root_spec.rb in timber-2.1.6 vs spec/timber/cli/installers/root_spec.rb in timber-2.1.7
- old
+ new
@@ -22,44 +22,18 @@
describe ".run" do
it "should run properly" do
input.string = "y\n"
- expect(installer).to receive(:install_platform).with(app).exactly(1).times
expect(installer).to receive(:run_sub_installer).with(app).exactly(1).times
expect(installer).to receive(:send_test_messages).exactly(1).times
expect(installer).to receive(:confirm_log_delivery).exactly(1).times
expect(installer).to receive(:wrap_up).with(app).exactly(1).times
expect(api).to receive(:event).with(:success).exactly(1).times
expect(installer).to receive(:collect_feedback).exactly(1).times
expect(installer).to receive(:free_data).exactly(1).times
installer.run(app)
- end
- end
-
- describe ".install_platform" do
- context "non-heroku" do
- it "should do nothing" do
- expect(installer.send(:install_platform, app)).to eq(true)
- expect(output.string).to eq("")
- end
- end
-
- context "heroku" do
- before(:each) do
- app.platform_type = "heroku"
- end
-
- it "should prompt for Heroku install" do
- input.string = "y\n"
-
- expect(installer.send(:install_platform, app)).to eq(true)
-
- copy_to_clipboard_message = Timber::CLI::OSHelper.can_copy_to_clipboard? ? "\n \e[32m(✓ copied to clipboard)\e[0m" : ""
- expected_output = "\n--------------------------------------------------------------------------------\n\nFirst, let's setup your Heroku drain. Run this command in a separate window:\n\n \e[34mheroku drains:add http://drain.heroku.com\e[0m#{copy_to_clipboard_message}\n\nReady to proceed? (y/n) "
- expect(output.string).to eq(expected_output)
- end
end
end
describe ".get_sub_installer" do
context "with Rails" do