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