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

Remove nokogiri development dependency #2149

Merged
merged 1 commit into from
Jan 2, 2016
Merged

Conversation

yujinakayama
Copy link
Member

Background: rspec/rspec-expectations#882

It's only used to filter backtrace in HtmlFormatter spec but it can be replaced and simplified with the backtrace filtering API.

@@ -41,6 +25,12 @@ module Formatters
allow(RSpec.configuration).to receive(:load_spec_files) do
RSpec.configuration.files_to_run.map {|f| load File.expand_path(f) }
end

# This is to minimize churn on backtrace lines
allow_any_instance_of(Notifications::FailedExampleNotification).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given we recommend against allow_any_instance_of, it's worth considering alternatives here. Can the interface be improved to make this simpler? Or can we use stub_const to replace a constant with an alternate implementation for this test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could filter the backtrace using Configuration#backtrace_exclusion_patterns / #backtrace_inclusion_patterns 😁

@myronmarston
Copy link
Member

👍 Nice to see how easy it was to remove! It's also great to see that this fixes an appveyor problem.

yujinakayama added a commit that referenced this pull request Jan 2, 2016
Remove nokogiri development dependency
@yujinakayama yujinakayama merged commit 360112d into master Jan 2, 2016
@yujinakayama yujinakayama deleted the remove-nokogiri branch January 2, 2016 21:23
@soulcutter
Copy link
Member

This is fantastic! Thanks, @yujinakayama !

@JonRowe
Copy link
Member

JonRowe commented Jan 5, 2016

@yujinakayama nice find! ❤️ ❤️ ❤️

yujinakayama added a commit that referenced this pull request Jan 7, 2016
Remove nokogiri development dependency
Conflicts:
	rspec-core.gemspec
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Remove nokogiri development dependency
yujinakayama added a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…ogiri

Remove nokogiri development dependency
Conflicts:
	rspec-core.gemspec

---
This commit was imported from rspec/rspec-core@1a7c8db.
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.

4 participants