README.md in capybara-screenshot-diff-1.5.2 vs README.md in capybara-screenshot-diff-1.5.3

- old
+ new

@@ -65,9 +65,18 @@ screenshot 'home_page' end end ``` +But it's better to include it within your *_helper.rb file so that it can used anywhere in your feature specs. +```ruby +# spec/feature_helper.rb +require 'capybara/screenshot/diff' + +RSpec.configure do |config| + config.include Capybara::Screenshot::Diff::TestMethods +end +``` ### Taking screenshots Add `screenshot '<my_feature>'` to your tests. The screenshot will be saved in the `doc/screenshots` directory.