2013-05-27 19:25:29 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
feature "Homepage", :js => true do
|
|
|
|
|
|
|
|
let!(:asciicast) { load_asciicast(1) }
|
|
|
|
|
|
|
|
scenario 'Visiting' do
|
|
|
|
visit root_path
|
|
|
|
|
|
|
|
expect(page).to have_content(/Recent Asciicasts/i)
|
|
|
|
expect(page).to have_link('Browse')
|
|
|
|
expect(page).to have_link('Record')
|
2013-05-27 20:04:52 +00:00
|
|
|
expect_browse_links
|
2013-05-27 19:25:29 +00:00
|
|
|
expect(page).to have_link("##{asciicast.id}")
|
|
|
|
expect(page).to have_selector('#about .play-button')
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|