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

Conversation

@pirj
Copy link
Member

@pirj pirj commented Jan 8, 2021

  1) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined
     Failure/Error: it("indicates it was previously defined") { expect(const).to be_previously_defined }
       expected `#<RSpec::Mocks::Constant TestClass::M>.previously_defined?` to return true, got [:m, "TestClass::M"]
     # ./spec/rspec/mocks/mutate_const_spec.rb:446:in `block (4 levels) in <module:Mocks>'

```
  1) RSpec::Mocks::Constant.original for a previously defined unstubbed constant indicates it was previously defined
     Failure/Error: it("indicates it was previously defined") { expect(const).to be_previously_defined }
       expected `#<RSpec::Mocks::Constant TestClass::M>.previously_defined?` to return true, got [:m, "TestClass::M"]
     # ./spec/rspec/mocks/mutate_const_spec.rb:446:in `block (4 levels) in <module:Mocks>'
```
@pirj pirj self-assigned this Jan 8, 2021
@pirj pirj changed the title Use true/false for previously_defined Use true/false for Constant#previously_defined Jan 8, 2021
@pirj pirj requested review from JonRowe and benoittgt January 8, 2021 07:35
@JonRowe JonRowe merged commit c52a0bf into 4-0-dev Jan 8, 2021
@JonRowe JonRowe deleted the use-strict-predicates branch January 8, 2021 08:39
JonRowe added a commit that referenced this pull request Jan 8, 2021
JonRowe added a commit that referenced this pull request Jan 15, 2021
JonRowe added a commit that referenced this pull request Jan 15, 2021
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 19, 2021
…ct-predicates

Use true/false for Constant#previously_defined

---
This commit was imported from rspec/rspec-mocks@c52a0bf.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants