Skip to content

Commit 2d864f8

Browse files
author
Sam Phippen
committed
Merge pull request #1505 from rspec/timoschilling/1484
Remove unused `@verb_to_path_map` from RouteToMatcher
2 parents a6bdb46 + 8802bb8 commit 2d864f8

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)