Bug #34064
ParameterFilterTest accidentally modifies Mocha::Mock
Pull request:
Fixed in Releases:
Found in Releases:
Description
$ bundle exec rake test TEST=test/unit/parameter_filter_test.rb TESTOPTS=-v
#<Mocha::Mock:0x0000557bf12cf750>#test_0002_permits plugin-added attributes from blocks = 0.49 s = .
#<Mocha::Mock:0x0000557bf1f22e30>#test_0001_permits plugin-added attribute = 0.04 s = .
Associated revisions
History
#1
Updated by The Foreman Bot 6 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8963 added
#2
Updated by The Foreman Bot 6 months ago
- Fixed in Releases 3.2.0 added
#3
Updated by Evgeni Golov 6 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|104493b2300036f24c90bcbd3fa896e2a5087033.
Fixes #34064 - don't override magic `klass` variable
when you let(:klass), it somehow touches the `Mocha::Mock` class,
instead of creating a new thing, freaking out Mocha in the process.
before:
after: