Details
-
Bug
-
Status: Closed
-
High
-
Resolution: Done
-
None
Description
Calling some test functions outside of test blocks seems to now fail tests.
See all of the recent puppet-test-full-STEAM jobs:
An error occurred while loading ./spec/unit/provider/jks_spec.rb.
Failure/Error: File.any_instance.stubs(:file?).returns(true)Mocha::NotInitializedError:
Mocha methods cannot be used outside the context of a test
- ./spec/unit/provider/jks_spec.rb:6:in `<top (required)>'
Deprecation Warnings:
puppetlabs_spec_helper: defaults `mock_with` to `:mocha`. See https://github.com/puppetlabs/puppetlabs_spec_helper#mock_with to choose a sensible value for you
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 71060,1 | Remove deprecated test fn calls outside of tests | master | integration/packaging/puppet-opendaylight | Status: MERGED | +2 | +1 |
| 71265,1 | Remove deprecated test fn calls outside of tests | stable/oxygen | integration/packaging/puppet-opendaylight | Status: MERGED | +2 | +1 |