Commit fc51ddb0796297b948745ccc253e1a199d453b49
1 parent
7695a3ac
Exists in
colab
and in
4 other branches
Fixed Reading destroy acceptance test
Showing
1 changed file
with
1 additions
and
1 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_groups/#{@reading_group.id}/readings/#{@reading.id}" | |
| 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 | ... | ... |