Project

General

Profile

Actions

Bug #28417

closed

mocha 1.10 break tests

Added by Shira Maximov about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Found in Releases:
In Kanboard:

Description

steps to reporduce:
run bundle exec rake test
1) Error:
HammerCLIForeman::ExceptionHandler#test_0010_should print resource errors on internal error exception:
NoMethodError: undefined method `code' for " {\"error\":{\"message\":\"Some internal exception\"}}\n":String
Did you mean? encode
/home/mshira/.rvm/gems/ruby-2.5.1/gems/rest-client-2.0.2/lib/restclient/exceptions.rb:123:in `http_code'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/rest-client-2.0.2/lib/restclient/exceptions.rb:179:in `block (3 levels) in <module:RestClient>'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/rest-client-2.0.2/lib/restclient/exceptions.rb:142:in `message'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/rest-client-2.0.2/lib/restclient/exceptions.rb:162:in `to_s'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/mocha-1.10.1/lib/mocha/inspect.rb:9:in `inspect'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/mocha-1.10.1/lib/mocha/inspect.rb:9:in `mocha_inspect'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/mocha-1.10.1/lib/mocha/mockery.rb:130:in `on_stubbing'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/mocha-1.10.1/lib/mocha/object_methods.rb:129:in `block in stubs'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/mocha-1.10.1/lib/mocha/argument_iterator.rb:13:in `each'
/home/mshira/.rvm/gems/ruby-2.5.1/gems/mocha-1.10.1/lib/mocha/object_methods.rb:127:in `stubs'
/home/mshira/git/hammer-cli-foreman/test/unit/exception_handler_test.rb:95:in `block (2 levels) in <top (required)>'


Related issues 1 (0 open1 closed)

Related to Hammer CLI - Feature #28420: Support mocha >=1.10ClosedActions
Actions #1

Updated by Oleh Fedorenko about 5 years ago

Actions #2

Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/460 added
Actions #3

Updated by The Foreman Bot about 5 years ago

  • Fixed in Releases hammer-cli-foreman-0.20.0 added
Actions #4

Updated by Shira Maximov about 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Shira Maximov almost 5 years ago

  • Fixed in Releases hammer-cli-foreman-0.19.5 added
Actions

Also available in: Atom PDF