class RouteMechanic::RSpec::Matchers::HaveNoUnusedActions
Public Instance Methods
description()
click to toggle source
# File lib/route_mechanic/rspec/matchers/have_no_unused_actions.rb, line 15 def description "have no unused actions" end
matches?(_actual)
click to toggle source
# File lib/route_mechanic/rspec/matchers/have_no_unused_actions.rb, line 7 def matches?(_actual) # assert_recognizes does not consider ActionController::RoutingError an # assertion failure, so we have to capture that and Assertion here. match_unless_raises Minitest::Assertion, ActiveSupport::TestCase::Assertion, ActionController::RoutingError do assert_no_unused_actions(@expected) end end