Skip to content

Commit

Permalink
mute [!] Original Error console output from test (#9249)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpirri committed May 23, 2017
1 parent e308e95 commit 452faad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fastlane/spec/cli_tools_distributor_spec.rb
Expand Up @@ -47,6 +47,7 @@
expect(FastlaneCore::FastlaneFolder).to receive(:fastfile_path).and_return("./fastlane/spec/fixtures/fastfiles/FastfileErrorInError").at_least(:once)
expect(FastlaneCore::UpdateChecker).to receive(:start_looking_for_update).with('fastlane')
expect(FastlaneCore::UpdateChecker).to receive(:show_update_status).with('fastlane', Fastlane::VERSION)
expect_any_instance_of(Commander::Runner).to receive(:abort).with("\n[!] Original error".red).and_raise(SystemExit) # mute console output from `abort`
expect do
Fastlane::CLIToolsDistributor.take_off
end.to raise_error(SystemExit)
Expand Down

0 comments on commit 452faad

Please sign in to comment.