Skip to content

Commit

Permalink
Include CapybaraScreenshotDiff::DSL in all RSpec system tests by defa…
Browse files Browse the repository at this point in the history
…ult (#125)

Co-authored-by: Alan Savage <[email protected]>
  • Loading branch information
asavageiv and asavageiv authored Aug 1, 2024
1 parent 34238c1 commit 84f0909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ include the `CapybaraScreenshotDiff::DSL` in your test classes.
It adds `match_screenshot` matcher to RSpec.

> **Important**:
> The `CapybaraScreenshotDiff::DSL` is automatically included in all feature tests by default.
> The `CapybaraScreenshotDiff::DSL` is automatically included in all feature and system tests by default.

```ruby
Expand Down
1 change: 1 addition & 0 deletions lib/capybara_screenshot_diff/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

RSpec.configure do |config|
config.include ::CapybaraScreenshotDiff::DSL, type: :feature
config.include ::CapybaraScreenshotDiff::DSL, type: :system

config.after do
if self.class.include?(::CapybaraScreenshotDiff::DSL) && ::Capybara::Screenshot.active?
Expand Down

0 comments on commit 84f0909

Please sign in to comment.