README.md in capybara-screenshot-diff-0.10.1 vs README.md in capybara-screenshot-diff-0.10.2

- old
+ new

@@ -26,9 +26,46 @@ $ gem install capybara-screenshot-diff ## Usage +### Minitest + +In your test class, include the `Capybara::Screenshot::Diff` module: + +```ruby +class FeatureTest < ActionDispatch::IntegrationTest + include Capybara::Screenshot::Diff + ... +end +``` + +or if you use the integration test directly: + +```ruby +class ActionDispatch::IntegrationTest + include Capybara::Screenshot::Diff + ... +end +``` + +### rspec + +```ruby +describe 'Permissions admin', :type => :feature, :js => true do + + include Capybara::Screenshot::Diff + + it 'works with permissions' do + visit('/') + screenshot 'home_page' + end + +end +``` + +### Taking screenshots + Add `screenshot '<my_feature>'` to your tests. The screenshot will be saved in the `doc/screenshots` directory. Change your existing `save_screenshot` calls to `screenshot`