From 6e6594b379c34b061e4ed71bb2cbad08bd096260 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Thu, 4 Jun 2015 17:41:13 -0300 Subject: [PATCH] Revert "[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 8b57788..172ad4f 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, subdirectory: 'mezuro') + url = reading_group_reading_path(reading_group_id: @reading_group.id, id: @reading.id, locale: :en) find("//a[@href='#{url}']").click end diff --git a/spec/routing/home_routing_spec.rb b/spec/routing/home_routing_spec.rb index ceac029..6cebf71 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, '/mezuro'). - to(controller: :home, action: :index, subdirectory: 'mezuro') } + it { is_expected.to route(:get, '/'). + to(controller: :home, action: :index) } it { is_expected.to route(:get, '/pt'). to(controller: :home, action: :index, locale: 'pt') } end -- libgit2 0.21.2