Skip to content

Commit 7c5c5f7

Browse files
committed
Fix navigation letter to click in test suites
1 parent d64aacc commit 7c5c5f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/features/podcasts_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
allow(Podcast).to receive(:find_by).with(id: @podcast.id.to_s) { @podcast }
1616

1717
visit "/podcasts/#{@podcast.id}"
18-
target = '« Top'
1918
expect(page).to have_http_status(:success)
20-
expect(page).to have_link target, href: '/podcasts'
19+
20+
target = 'Top'
21+
expect(page).to have_link target, href: podcasts_path
2122
click_link target, match: :first
2223
expect(page).to have_http_status(:success)
2324
end

0 commit comments

Comments
 (0)