asciinema.org/spec/features/example_page_spec.rb
2013-11-22 21:45:45 +01:00

16 lines
323 B
Ruby

require 'spec_helper'
feature "Example page with embedded player", :js => true do
let!(:asciicast) { create(:asciicast) }
scenario 'Visiting' do
visit example_asciicast_path(asciicast)
within_frame "asciicast-iframe-#{asciicast.id}" do
expect(page).to have_selector('.play-button')
end
end
end