Sha256: a78eeb9d603c4fc9427b010e9bd0308440cc4881f2f650ffcacc33260d160a94
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
require "action_dispatch/testing/assertions/routing" module RSpec::Rails module RoutingExampleGroup extend ActiveSupport::Concern extend RSpec::Rails::ModuleInclusion include RSpec::Rails::TestUnitAssertionAdapter include ActionDispatch::Assertions::RoutingAssertions include RSpec::Rails::Matchers::RoutingMatchers module InstanceMethods attr_reader :routes end included do metadata[:type] = :routing before do @routes = ::Rails.application.routes end end RSpec.configure &include_self_when_dir_matches('spec','routing') end end
Version data entries
3 entries across 3 versions & 1 rubygems