Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ujjain

ujjain/test.rb Secret

Created April 27, 2016 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ujjain/5cb02afa3a4030d7c11624590cc45e7e to your computer and use it in GitHub Desktop.
Save ujjain/5cb02afa3a4030d7c11624590cc45e7e to your computer and use it in GitHub Desktop.
Then(/^the output should be '(.*)'$/) do |expectedException|
expect(@timeout_exception).to eq(expectedException)
end
And the output should be 'Execution Timeout Error: This deployment has taken too long to run' # features/step_definitions/my_steps.rb:309
expected: "Execution Timeout Error: This deployment has taken too long to run"
got: nil
(compared using ==)
(RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/my_steps.rb:310:in `/^the output should be '(.*)'$/'
features/timeout_lengthy_deploys.feature:25:in `And the output should be 'Execution Timeout Error: This deployment has taken too long to run''
Failing Scenarios:
cucumber features/timeout_lengthy_deploys.feature:11 # Scenario: Normal deploy that times out because it takes too long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment