Order product user spec green

This commit is contained in:
2014-06-25 17:23:43 +02:00
parent 58f0937570
commit 10bc926e87
10 changed files with 41 additions and 11 deletions
+8
View File
@@ -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