C&V test improvements

This commit is contained in:
2015-09-23 17:14:53 +02:00
parent 735ed9b70d
commit 81d4545104
12 changed files with 33 additions and 14 deletions
+7
View File
@@ -22,6 +22,13 @@ module ApplicationHelper
super(*args)
end
def user_root_path
case Rails.env
when 'development' then 'http://localhost:4200/'
else '/user/index.html'
end
end
def user_dynamic_data_host
case Rails.env
when 'test' then "$data_host = data_host = 'http://#{request.host}:#{request.port}';".html_safe