diff --git a/README.md b/README.md index 5c27617..b10e120 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ This example config only runs Chusaku if `routes.rb` was modified. ## Development Read the blog post explaining how the gem works at a high level: -https://nshki.com/chusaku-a-controller-annotation-gem/. +https://nshki.com/chusaku-a-controller-annotation-gem. After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake test` to run the tests. You can also run `bin/console` for an diff --git a/test/mock/rails.rb b/test/mock/rails.rb index 4c461a3..292c674 100644 --- a/test/mock/rails.rb +++ b/test/mock/rails.rb @@ -128,7 +128,7 @@ def mock_route(controller:, action:, verb:, path:, name:, defaults: {}) return if @@route_allowlist.any? && @@route_allowlist.index("#{controller}##{action}").nil? route = Minitest::Mock.new - route.expect(:defaults, controller: controller, action: action, **defaults) + route.expect(:defaults, {controller: controller, action: action, **defaults}) route.expect(:verb, verb) route_path = Minitest::Mock.new