-
-
Notifications
You must be signed in to change notification settings - Fork 753
Remove nokogiri development dependency #2149
Conversation
7009c33
to
664c719
Compare
@@ -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). |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
😁
👍 Nice to see how easy it was to remove! It's also great to see that this fixes an appveyor problem. |
664c719
to
337ad93
Compare
337ad93
to
2ec1ab5
Compare
Remove nokogiri development dependency
This is fantastic! Thanks, @yujinakayama ! |
@yujinakayama nice find! ❤️ ❤️ ❤️ |
Remove nokogiri development dependency Conflicts: rspec-core.gemspec
Remove nokogiri development dependency
…ogiri Remove nokogiri development dependency Conflicts: rspec-core.gemspec --- This commit was imported from rspec/rspec-core@1a7c8db.
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.