Skip to content

Commit 13cb353

Browse files
timoschillingsebjacobs
authored andcommitted
Remove unused @verb_to_path_map from RouteToMatcher
1 parent 9edcc07 commit 13cb353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/matchers/routing_matchers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize(scope, *expected)
1919
end
2020

2121
def matches?(verb_to_path_map)
22-
@actual = @verb_to_path_map = verb_to_path_map
22+
@actual = verb_to_path_map
2323
# assert_recognizes does not consider ActionController::RoutingError an
2424
# assertion failure, so we have to capture that and Assertion here.
2525
match_unless_raises ActiveSupport::TestCase::Assertion, ActionController::RoutingError do

0 commit comments

Comments
 (0)