require 'test_helper' class RouteInspectorTest < ActiveSupport::TestCase test "redirect route should not be returned" do inspector = Caliper::RouteInspector.new all_routes = Rails.application.routes.routes inspected_routes = inspector.routes(all_routes) inspected_routes.each do |route| assert route[:name] != "blog", "Blog route should not be in inspected routes" end end end