Class: RSpec::Rails::Matchers::RoutingMatchers::RouteToMatcher
- Inherits:
-
Object
- Object
- RSpec::Rails::Matchers::RoutingMatchers::RouteToMatcher
- Defined in:
- lib/xing/spec_helpers/routing_spec_patch.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#matches_with_patches?(verb_to_path_map) ⇒ Boolean
7 8 9 10 11 |
# File 'lib/xing/spec_helpers/routing_spec_patch.rb', line 7 def matches_with_patches?(verb_to_path_map) path = verb_to_path_map.values.first verb_to_path_map[verb_to_path_map.keys.first] = "http://#{BACKEND_SUBDOMAIN}.example.com#{path[0] == "/" ? "" : "/"}#{path}"; matches_without_patches?(verb_to_path_map) end |