Add fake host pages with an embedded asciicast
parent
a6a925edd3
commit
4b9c33f228
@ -0,0 +1,14 @@
|
||||
p
|
||||
' Well, the way they make shows is, they make one show. That show's called a
|
||||
pilot. Then they show that show to the people who make shows, and on the
|
||||
strength of that one show they decide if they're going to make more shows.
|
||||
Some pilots get picked and become television programs. Some don't, become
|
||||
nothing. She starred in one of the ones that became nothing.
|
||||
|
||||
script[type="text/javascript" src=asciicast_url(@asciicast, format: 'js') id="asciicast-#{@asciicast.id}" async]
|
||||
|
||||
p
|
||||
' Now that there is the Tec-9, a crappy spray gun from South Miami. This gun is
|
||||
advertised as the most popular gun in American crime. Do you believe that shit?
|
||||
It actually says that in the little book that comes with it: the most popular
|
||||
gun in American crime. Like they're actually proud of that shit.
|
@ -0,0 +1,12 @@
|
||||
doctype html
|
||||
html[lang="en"]
|
||||
head
|
||||
css:
|
||||
body { margin: 20px }
|
||||
.content {
|
||||
background-color: #ddd;
|
||||
padding: 20px
|
||||
}
|
||||
body
|
||||
div.content
|
||||
= yield
|
@ -0,0 +1,15 @@
|
||||
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
|
Loading…
Reference in New Issue