How to Enable the Diff Based on a Tag
wbotelhos opened this issue · 0 comments
wbotelhos commented
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!