Class: RouteMechanic::RSpec::Matchers::BaseMatcher
- Inherits:
-
Object
- Object
- RouteMechanic::RSpec::Matchers::BaseMatcher
show all
- Includes:
- RSpec::Matchers::Composable, Testing::Methods
- Defined in:
- lib/route_mechanic/rspec/matchers/base_matcher.rb
Instance Attribute Summary
#assertions
Instance Method Summary
collapse
#assert_all_routes, #assert_no_unused_actions, #assert_no_unused_routes
Constructor Details
#initialize(expected) ⇒ BaseMatcher
Returns a new instance of BaseMatcher.
12
13
14
|
# File 'lib/route_mechanic/rspec/matchers/base_matcher.rb', line 12
def initialize(expected)
@expected = expected
end
|
Instance Method Details
#description ⇒ Object
24
25
26
|
# File 'lib/route_mechanic/rspec/matchers/base_matcher.rb', line 24
def description
raise NotImplementedError
end
|
#failure_message ⇒ Object
20
21
22
|
# File 'lib/route_mechanic/rspec/matchers/base_matcher.rb', line 20
def failure_message
@rescued_exception.message
end
|
#matches?(_actual) ⇒ Boolean
16
17
18
|
# File 'lib/route_mechanic/rspec/matchers/base_matcher.rb', line 16
def matches?(_actual)
raise NotImplementedError
end
|