Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Backport strict predicate fix #1402

Merged
merged 2 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Bug Fixes:

* Support keyword arguments with `and_call_original` on Ruby 3.0.
(Bryan Powell, #1385)
* `RSpec::Mocks::Constant#previously_defined?` is now always a boolean.
(Phil Pirozhkov, #1397)

### 3.10.1 / 2020-12-27
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.0...v3.10.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/mocks/mutate_const.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def to_s

# @private
def self.unmutated(name)
previously_defined = recursive_const_defined?(name)
previously_defined = !!recursive_const_defined?(name)
rescue NameError
new(name) do |c|
c.valid_name = false
Expand Down