Render user app in test env

This commit is contained in:
2015-01-13 11:59:12 +01:00
parent f11bf57854
commit b614eeeaef
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ module SpecRouteHelpers
# currentRouteName does not include model information: /list/123 => currentRouteName == 'list'
# page.evaluate_script %|App.__container__.lookup('controller:application').get('currentRouteName')|
# page.evaluate_script %|App.__container__.lookup('router:main').location.lastSetURL| # not working for direct path supplier#/settings
route = page.evaluate_script %{App.__container__ && (window.location.hash || "#/").substr(1)}
route = page.evaluate_script(%{App.__container__ && (window.location.hash || "#/").substr(1)})
unless omit_should_raise
def route.should(*)
raise "Cannot call should on ember route. Use ember_route_should_be instead"