Commit 4211de4d7a8af53111995500e4d7c225023e143c

Authored by Rafael Manzo
1 parent c5f4049b

[Colab] Fixes for failling tests after adding the subdirectory to routes

features/step_definitions/reading_steps.rb
... ... @@ -31,6 +31,6 @@ Then(/^I should see a color picker Canvas$/) do
31 31 end
32 32  
33 33 When(/^I choose the destroy reading link$/) do
34   - url = reading_group_reading_path(reading_group_id: @reading_group.id, id: @reading.id, locale: :en)
  34 + url = reading_group_reading_path(reading_group_id: @reading_group.id, id: @reading.id, locale: :en, subdirectory: 'mezuro')
35 35 find("//a[@href='#{url}']").click
36 36 end
... ...
spec/routing/home_routing_spec.rb
... ... @@ -2,8 +2,8 @@ require "rails_helper"
2 2  
3 3 describe HomeController, :type => :routing do
4 4 describe "routing" do
5   - it { is_expected.to route(:get, '/').
6   - to(controller: :home, action: :index) }
  5 + it { is_expected.to route(:get, '/mezuro').
  6 + to(controller: :home, action: :index, subdirectory: 'mezuro') }
7 7 it { is_expected.to route(:get, '/pt').
8 8 to(controller: :home, action: :index, locale: 'pt') }
9 9 end
... ...