Commit dd5253afb4987c5010b3352856363353d6e157c9
Committed by
Rafael Reggiani Manzo
1 parent
9ea160c6
[Colab] Fixes for failling tests after adding the subdirectory to routes
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
features/step_definitions/reading_steps.rb
@@ -31,6 +31,6 @@ Then(/^I should see a color picker Canvas$/) do | @@ -31,6 +31,6 @@ Then(/^I should see a color picker Canvas$/) do | ||
31 | end | 31 | end |
32 | 32 | ||
33 | When(/^I choose the destroy reading link$/) do | 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 | find("//a[@href='#{url}']").click | 35 | find("//a[@href='#{url}']").click |
36 | end | 36 | end |
spec/routing/home_routing_spec.rb
@@ -2,8 +2,8 @@ require "rails_helper" | @@ -2,8 +2,8 @@ require "rails_helper" | ||
2 | 2 | ||
3 | describe HomeController, :type => :routing do | 3 | describe HomeController, :type => :routing do |
4 | describe "routing" do | 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 | it { is_expected.to route(:get, '/pt'). | 7 | it { is_expected.to route(:get, '/pt'). |
8 | to(controller: :home, action: :index, locale: 'pt') } | 8 | to(controller: :home, action: :index, locale: 'pt') } |
9 | end | 9 | end |