Rename expect_browse_section to expect_browse_links
This commit is contained in:
parent
7659fe722e
commit
634d0d5aec
@ -8,7 +8,7 @@ feature "Asciicast lists" do
|
||||
visit browse_path
|
||||
|
||||
expect(page).to have_content(/All Asciicasts/i)
|
||||
expect_browse_section
|
||||
expect_browse_links
|
||||
expect(page).to have_link("##{asciicast.id}")
|
||||
expect(page).to have_selector('.supplimental .play-button')
|
||||
end
|
||||
@ -17,7 +17,7 @@ feature "Asciicast lists" do
|
||||
visit popular_path
|
||||
|
||||
expect(page).to have_content(/Popular Asciicasts/i)
|
||||
expect_browse_section
|
||||
expect_browse_links
|
||||
expect(page).to have_link("##{asciicast.id}")
|
||||
expect(page).to have_selector('.supplimental .play-button')
|
||||
end
|
||||
|
@ -8,10 +8,9 @@ feature "Homepage", :js => true do
|
||||
visit root_path
|
||||
|
||||
expect(page).to have_content(/Recent Asciicasts/i)
|
||||
page.save_screenshot 'a.png'
|
||||
expect(page).to have_link('Browse')
|
||||
expect(page).to have_link('Record')
|
||||
expect_browse_section
|
||||
expect_browse_links
|
||||
expect(page).to have_link("##{asciicast.id}")
|
||||
expect(page).to have_selector('#about .play-button')
|
||||
end
|
||||
|
@ -34,7 +34,7 @@ module AsciiIo
|
||||
end
|
||||
end
|
||||
|
||||
def expect_browse_section
|
||||
def expect_browse_links
|
||||
expect(page).to have_link('All')
|
||||
expect(page).to have_link('Popular')
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user