From 1d52e78c65586b92947fcff2e3826dfa18d1eca6 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Mon, 4 Jul 2016 08:41:38 +0200 Subject: [PATCH] slightly less failing test suite but removing the annoying 404 failures --- Gemfile.lock | 14 +++++++------- config/deploy.rb | 2 +- spec/support/ember_helpers.rb | 2 +- spec/support/features/basic_helpers.rb | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 8943ef73..b6608a21 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -229,7 +229,7 @@ GEM faye-websocket (0.10.4) eventmachine (>= 0.12.0) websocket-driver (>= 0.5.1) - font-awesome-rails (4.6.3.0) + font-awesome-rails (4.6.3.1) railties (>= 3.2, < 5.1) foreman (0.82.0) thor (~> 0.19.1) @@ -275,7 +275,7 @@ GEM mime-types (>= 1.16, < 4) method_source (0.8.2) mime-types (2.99.2) - mimemagic (0.3.0) + mimemagic (0.3.1) mini_magick (4.5.1) mini_portile2 (2.1.0) minitest (5.9.0) @@ -308,12 +308,12 @@ GEM oauth2 (~> 1.0) omniauth (~> 1.2) orm_adapter (0.5.0) - paperclip (4.3.6) - activemodel (>= 3.2.0) - activesupport (>= 3.2.0) + paperclip (5.0.0) + activemodel (>= 4.2.0) + activesupport (>= 4.2.0) cocaine (~> 0.5.5) mime-types - mimemagic (= 0.3.0) + mimemagic (~> 0.3.0) pickadate-rails (3.5.6.0) railties (>= 3.1.0) pkg-config (1.1.7) @@ -445,7 +445,7 @@ GEM thread_safe (0.3.5) tilt (2.0.5) timecop (0.8.1) - tinymce-rails (4.3.13) + tinymce-rails (4.4.0) railties (>= 3.1.1) turnip (2.1.1) gherkin (~> 2.5) diff --git a/config/deploy.rb b/config/deploy.rb index 3acec8c0..a59f717a 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -106,7 +106,7 @@ namespace :deploy do #end #end rsync_host = host - run_locally { execute "rsync -av --delete --ignore-times ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" } + run_locally { execute "rsync -azv --delete --ignore-times ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" } #run_locally { execute "rsync -av ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" } execute :chown, "-R www-data:www-data", shared_path.join('public/assets/') diff --git a/spec/support/ember_helpers.rb b/spec/support/ember_helpers.rb index 3a63db31..67b8e06e 100644 --- a/spec/support/ember_helpers.rb +++ b/spec/support/ember_helpers.rb @@ -109,7 +109,7 @@ module SpecEmberHelpers ember_ready = page.evaluate_script('window.ember_ready') times += 1 end - raise "Ember is not loaded and should be" unless ember_ready + raise "Ember is not loaded and should be. Current path is: #{page.current_path}" unless ember_ready blk.call end end diff --git a/spec/support/features/basic_helpers.rb b/spec/support/features/basic_helpers.rb index b8154c82..10d3ac41 100644 --- a/spec/support/features/basic_helpers.rb +++ b/spec/support/features/basic_helpers.rb @@ -58,7 +58,7 @@ module Features end super(*args) if Capybara.current_driver == Capybara.javascript_driver - if page.current_path != "/admin/employees/test_login" + if %w[/user /supplier].any? { |path_prefix| page.current_path.starts_with? path_prefix } when_ember_is_ready { } end end