Module: RouteMechanic::RSpec::Matchers

Defined in:
lib/route_mechanic/rspec/matchers.rb,
lib/route_mechanic/rspec/matchers/base_matcher.rb,
lib/route_mechanic/rspec/matchers/have_valid_routes.rb,
lib/route_mechanic/rspec/matchers/have_no_unused_routes.rb,
lib/route_mechanic/rspec/matchers/have_no_unused_actions.rb

Defined Under Namespace

Classes: BaseMatcher, HaveNoUnusedActions, HaveNoUnusedRoutes, HaveValidRoutes

Instance Method Summary collapse

Instance Method Details

#have_no_unused_actions(application = Rails.application) ⇒ Object



12
13
14
# File 'lib/route_mechanic/rspec/matchers.rb', line 12

def have_no_unused_actions(application=Rails.application)
  HaveNoUnusedActions.new(application)
end

#have_no_unused_routes(application = Rails.application) ⇒ Object



16
17
18
# File 'lib/route_mechanic/rspec/matchers.rb', line 16

def have_no_unused_routes(application=Rails.application)
  HaveNoUnusedRoutes.new(application)
end

#have_valid_routes(application = Rails.application) ⇒ Object



8
9
10
# File 'lib/route_mechanic/rspec/matchers.rb', line 8

def have_valid_routes(application=Rails.application)
  HaveValidRoutes.new(application)
end