Rename expect_browse_section to expect_browse_links

This commit is contained in:
Marcin Kulik 2013-05-27 22:04:52 +02:00
parent 7659fe722e
commit 634d0d5aec
3 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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