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

When filtering, do not consider declaration lines from other files. #2170

Merged
merged 5 commits into from
Feb 9, 2016

Conversation

myronmarston
Copy link
Member

Before this, our logic for line number filtering asked RSpec.world
for the preceding declaration line of a particular line number,
without passing it a file name, which meant that it looked at
the declaration line numbers from all files. This was prone to
producing weird filtering behavior.

Fixes #2136.

Before this, our logic for line number filtering asked `RSpec.world`
for the preceding declaration line of a particular line number,
*without* passing it a file name, which meant that it looked at
the declaration line numbers from _all_ files. This was prone to
producing weird filtering behavior.

Fixes #2136.
@myronmarston
Copy link
Member Author

This is green now. Can someone from @rspec/rspec review?

@JonRowe
Copy link
Member

JonRowe commented Feb 9, 2016

Looks sane to me

JonRowe added a commit that referenced this pull request Feb 9, 2016
When filtering, do not consider declaration lines from other files.
@JonRowe JonRowe merged commit 59f4519 into master Feb 9, 2016
@JonRowe JonRowe deleted the issue-2136 branch February 9, 2016 08:27
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
When filtering, do not consider declaration lines from other files.
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