Actions
Refactor #13879
closedLoad mocha/minitest integration explicitly in test_helper
Description
https://github.com/rails/rails/commit/fd6aaaa in Rails 4.2 will remove automatic loading of mocha from the Rails test helper, as it's expected that applications have an explicit dependency on it anyway if they want to use it.
Without it, mocha methods simply don't exist and tests fail with:
NoMethodError: undefined method `any_instance' for #<Class:0x000000070d2670> app/models/host.rb:15:in `method_missing' test/test_helper.rb:196:in `disable_orchestration'
Updated by Dominic Cleal over 8 years ago
- Blocks Feature #13244: Upgrade Ruby on Rails to 4.2 added
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3232 added
Updated by Dominic Cleal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8a7d34da3210f09eed593c5871883175c57a6701.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 136
Actions