test/support/assertions.rb in route_dog-2.3.0 vs test/support/assertions.rb in route_dog-2.3.1
- old
+ new
@@ -11,10 +11,10 @@
def assert_watched_routes_not_include(controller, action, method = :get)
begin
routes = YAML.load_file(RouteDog::Middleware::RouteDog.config_file)
routes[controller.to_s][action.to_s].include?(method.to_s)
assert false
- rescue Test::Unit::AssertionFailedError
+ rescue ActiveSupport::TestCase::Assertion
assert false, "Expected Watched Routes To Not include {:controller => :#{controller}, :action => :#{action}, :method => :#{method}}."
rescue
assert true
end
end