asciinema.org/spec/features/example_page_spec.rb

16 lines
324 B
Ruby
Raw Normal View History

2014-08-30 17:38:47 +00:00
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