Commit 9493cb1f12c57bdab98902718eccde7e880af128
1 parent
b24496ad
Revert "[Colab] Fixes for failling tests after adding the subdirectory to routes"
This reverts commit 4211de4d7a8af53111995500e4d7c225023e143c. The right way to set the subdirectory is by setting the Rack mount on config.ru or on the webserver like apache or nginx.
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 | 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, subdirectory: 'mezuro') | |
34 | + url = reading_group_reading_path(reading_group_id: @reading_group.id, id: @reading.id, locale: :en) | |
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, '/mezuro'). | |
6 | - to(controller: :home, action: :index, subdirectory: 'mezuro') } | |
5 | + it { is_expected.to route(:get, '/'). | |
6 | + to(controller: :home, action: :index) } | |
7 | 7 | it { is_expected.to route(:get, '/pt'). |
8 | 8 | to(controller: :home, action: :index, locale: 'pt') } |
9 | 9 | end | ... | ... |