Order product user spec green
This commit is contained in:
@@ -13,4 +13,12 @@ module SpecRouteHelpers
|
||||
route_hash.merge! options
|
||||
Rails.application.routes.recognize_path(page.current_path).should include route_hash
|
||||
end
|
||||
|
||||
def ember_route_should_be(route_def)
|
||||
ember_route.should == route_def
|
||||
end
|
||||
|
||||
def ember_route
|
||||
page.evaluate_script %|App.__container__.lookup('router:main').location.lastSetURL|
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user