Class: RSpec::Rails::Matchers::RoutingMatchers::RouteToMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/xing/spec_helpers/routing_spec_patch.rb

Direct Known Subclasses

FrontendRouteToMatcher

Instance Method Summary collapse

Instance Method Details

#matches_with_patches?(verb_to_path_map) ⇒ Boolean

Returns:

  • (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