You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/spec/features/home_spec.rb

19 lines
424 B
Ruby

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')
expect_browse_links
expect(page).to have_link("##{asciicast.id}")
expect(page).to have_selector('#about .play-button')
end
end