asciinema.org/spec/features/asciicast_spec.rb

21 lines
560 B
Ruby

require 'spec_helper'
feature "Asciicast page", :js => true do
let!(:user) { create(:user) }
let!(:asciicast) { create(:asciicast, :user => user) }
let!(:other_asciicast) { create(:asciicast, :user => user) }
scenario 'Visiting as guest' do
visit asciicast_path(asciicast)
expect(page).to have_content('Recorded')
expect(page).to have_content('Viewed')
expect(page).to have_content('OS')
expect(page).to have_content('SHELL')
expect(page).to have_content('TERM')
expect(page).to have_selector('.play-button')
end
end