Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Enable the Diff Based on a Tag #194

Open
wbotelhos opened this issue Aug 2, 2023 · 0 comments
Open

How to Enable the Diff Based on a Tag #194

wbotelhos opened this issue Aug 2, 2023 · 0 comments

Comments

@wbotelhos
Copy link

wbotelhos commented Aug 2, 2023

I would like to execute the diff power only on specifics tests. Something like:

require 'super_diff/rspec-rails'

RSpec.configure do |config|
  config.around(:each, :diff) do |example|
    SuperDiff.inline! { example.run }    
  end
end
it 'works', :diff do
  expect({ done: true }).to eq({ done: false })
end

Is that possible? Thanks for the great gem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant