Skip to content

Commit

Permalink
Changing the login username for tests #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Apoorva-GA committed Oct 17, 2017
1 parent a28cce4 commit 91605bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/execution_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
allow(ExecutionHandler).to receive(:get_code_snippet).and_return("11 | assert_equal(expected_count.to_i, 4)\n")
allow(message).to receive(:messageId) {1}
allow(exception).to receive(:message) {"error message"}
allow(exception).to receive_message_chain(:backtrace, :select, :join => '/Users/apoorvag/gauge-ruby/step_implementations/step_implementation.rb:11:in block in <top (required)>')
allow(exception).to receive_message_chain(:backtrace, :select, :join => '/abc/xyz/gauge-ruby/step_implementations/step_implementation.rb:11:in block in <top (required)>')
}
it {
response = subject.handle_failure(message, exception, ((Time.now-Time.now) * 1000).round, false).executionStatusResponse
expect(response.executionResult.failed).to eq true
expect(response.executionResult.errorMessage).to eq "error message"
expect(response.executionResult.stackTrace).to eq "> 11 | assert_equal(expected_count.to_i, 4)\n/Users/apoorvag/gauge-ruby/step_implementations/step_implementation.rb:11:in block in <top (required)>\n"
expect(response.executionResult.stackTrace).to eq "> 11 | assert_equal(expected_count.to_i, 4)\n/abc/xyz/gauge-ruby/step_implementations/step_implementation.rb:11:in block in <top (required)>\n"
}
end

Expand Down

0 comments on commit 91605bd

Please sign in to comment.