From dd5253afb4987c5010b3352856363353d6e157c9 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Wed, 3 Jun 2015 15:44:11 -0300 Subject: [PATCH] [Colab] Fixes for failling tests after adding the subdirectory to routes --- features/step_definitions/reading_steps.rb | 2 +- spec/routing/home_routing_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/step_definitions/reading_steps.rb b/features/step_definitions/reading_steps.rb index 172ad4f..8b57788 100644 --- a/features/step_definitions/reading_steps.rb +++ b/features/step_definitions/reading_steps.rb @@ -31,6 +31,6 @@ Then(/^I should see a color picker Canvas$/) do end When(/^I choose the destroy reading link$/) do - url = reading_group_reading_path(reading_group_id: @reading_group.id, id: @reading.id, locale: :en) + url = reading_group_reading_path(reading_group_id: @reading_group.id, id: @reading.id, locale: :en, subdirectory: 'mezuro') find("//a[@href='#{url}']").click end diff --git a/spec/routing/home_routing_spec.rb b/spec/routing/home_routing_spec.rb index 6cebf71..ceac029 100644 --- a/spec/routing/home_routing_spec.rb +++ b/spec/routing/home_routing_spec.rb @@ -2,8 +2,8 @@ require "rails_helper" describe HomeController, :type => :routing do describe "routing" do - it { is_expected.to route(:get, '/'). - to(controller: :home, action: :index) } + it { is_expected.to route(:get, '/mezuro'). + to(controller: :home, action: :index, subdirectory: 'mezuro') } it { is_expected.to route(:get, '/pt'). to(controller: :home, action: :index, locale: 'pt') } end -- libgit2 0.21.2