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

27 lines
625 B
Ruby

require 'spec_helper'
feature "Asciicast lists" do
let!(:asciicast) { create(:asciicast) }
scenario 'Visiting all' do
visit browse_path
expect(page).to have_content(/All Asciicasts/i)
expect_browse_links
expect(page).to have_link("bashing")
expect(page).to have_selector('.supplimental .play-button')
end
scenario 'Visiting popular' do
visit asciicast_path(asciicast)
visit popular_path
expect(page).to have_content(/Popular Asciicasts/i)
expect_browse_links
expect(page).to have_link("bashing")
expect(page).to have_selector('.supplimental .play-button')
end
end