Commit 4211de4d7a8af53111995500e4d7c225023e143c
1 parent
c5f4049b
[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 |
-
mentioned in commit 9493cb1f12c57bdab98902718eccde7e880af128
-
mentioned in commit 1b63a5d9ac94452212346d32da0f9b00cd1e9c00
-
mentioned in commit ef675da2f6548ce1bc148387304c9b02597cdaad
-
mentioned in commit f8a6bec237a80222c1335568922306e65cb4059e
-
mentioned in commit b61b63ccbc30516896d709cfddb70e4e6cbd058e
-
mentioned in commit d5b2d82aa30c96a0290e9ab8f20db9b36b22da77
-
mentioned in commit 30f3a55d5dd935017aab14c4841fafef6215b9c4
-
mentioned in commit 6e6594b379c34b061e4ed71bb2cbad08bd096260
-
mentioned in commit cfb9f85d3dd0d9f8e9ff6075e4d270842954ccc8
-
mentioned in commit 3cab2c1a7426feb5c2f11403e149c5dda4323797
-
mentioned in commit 07a0cfd31f164932d77586c14216d6d88be90bdf