asciinema.org/spec/features/example_page_spec.rb
2014-08-30 20:10:49 +02:00

16 lines
324 B
Ruby

require 'rails_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