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/asciicast_spec.rb

19 lines
516 B
Ruby

require 'rails_helper'
feature "Asciicast page", :js => true do
let!(:user) { create(:user, username: 'aaron') }
let!(:asciicast) { create(:asciicast, user: user, title: 'the title') }
let!(:other_asciicast) { create(:asciicast, user: user) }
scenario 'Visiting as guest' do
visit asciicast_path(asciicast)
expect(page).to have_content('the title')
expect(page).to have_link('aaron')
expect(page).to have_link('Embed')
expect(page).to have_selector('.cinema .play-button')
end
end