README.md in museo-0.2.0 vs README.md in museo-0.3.0

- old
+ new

@@ -51,14 +51,44 @@ museo clear [MATCHER] # Clear snapshots that match MATCHER museo help [COMMAND] # Describe available commands or one specific command museo list [MATCHER] # List snapshots that match MATCHER ``` +### RSpec + +```ruby +RSpec.describe ProductsController, type: :controller do + include Museo::RSpecIntegration + + describe "GET #index" do + snapshot "with no params" do + get :index + end + end +end +``` + +### Minitest + +```ruby +require "test_helper" + +class ProductsControllerTest < ActionController::TestCase + include Museo::MinitestIntegration + + snapshot "#index with no params" do + get :index + end +end +``` + ## Getting Started Museo makes a custom testing command available to your controller tests to save and compare snapshots. These examples will be written with Minitest, but there are examples below for how to work with RSpec as well. + +_Note: all code from this guide can be found at the [museo-example](https://github.com/danielma/museo-example) repo_ Let's start with a simple setup and write some snapshot tests. `app/controllers/products_controller.rb`