Skip to content

Commit d1e3e8c

Browse files
tonytacupakromer
authored andcommitted
defines BeRoutableMatcher#description
overrides RSpec::Matchers::BuiltIn::BaseMatcher#description to return the description "be routable" instead of "be routable matcher"
1 parent f57e6f9 commit d1e3e8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rspec/rails/matchers/routing_matchers.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ def failure_message
8484
def failure_message_when_negated
8585
"expected #{@actual.inspect} not to be routable, but it routes to #{@routing_options.inspect}"
8686
end
87+
88+
def description
89+
"be routable"
90+
end
8791
end
8892

8993
# Passes if the route expression is recognized by the Rails router based on

0 commit comments

Comments
 (0)