asciinema.org/spec/features/home_spec.rb

20 lines
515 B
Ruby
Raw Normal View History

2014-08-30 17:38:47 +00:00
require 'rails_helper'
2013-05-27 19:25:29 +00:00
feature "Homepage", :js => true do
2013-10-20 15:26:01 +00:00
let!(:user) { create(:user) }
let!(:asciicast) { create(:asciicast, user: user, title: 'the title') }
2013-05-27 19:25:29 +00:00
scenario 'Visiting' do
visit root_path
expect(page).to have_link('Browse')
2013-10-20 15:26:01 +00:00
expect(page).to have_link('Docs')
expect(page).to have_button('Start Recording')
expect(page).to have_content(/Featured asciicasts/i)
2015-05-10 19:24:46 +00:00
expect(page).to have_content(/Latest public asciicasts/i)
expect(page).to have_link("the title")
2013-05-27 19:25:29 +00:00
end
end