Class: Shoulda::Matchers::Integrations::Libraries::Routing

Inherits:
Object
  • Object
show all
Includes:
Inclusion, Rails
Defined in:
lib/shoulda/matchers/integrations/libraries/routing.rb

Instance Method Summary collapse

Methods included from Rails

#rails?

Methods included from Inclusion

#include_into

Instance Method Details

#integrate_with(test_framework) ⇒ Object



12
13
14
15
16
# File 'lib/shoulda/matchers/integrations/libraries/routing.rb', line 12

def integrate_with(test_framework)
  test_framework.include(matchers_module, type: :routing)

  include_into(::ActionController::TestCase, matchers_module)
end