Project

General

Profile

Bug #28417

mocha 1.10 break tests

Added by Shira Maximov 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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

Related to Hammer CLI - Feature #28420: Support mocha >=1.10Closed

Associated revisions

Revision f4af22b1 (diff)
Added by Shira Maximov 6 months ago

Fixes #28417 - Restrict Mocha to not use version > 1.9.0 (#460)

History

#1 Updated by Oleh Fedorenko 6 months ago

#2 Updated by The Foreman Bot 6 months ago

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

#3 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases hammer-cli-foreman-0.20.0 added

#4 Updated by Shira Maximov 6 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Shira Maximov 5 months ago

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

Also available in: Atom PDF