mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
15 lines
351 B
Ruby
15 lines
351 B
Ruby
![]() |
require 'capybara/spec/test_app'
|
||
|
|
||
|
class TestApp
|
||
|
POLTERGEIST_VIEWS = File.dirname(__FILE__) + "/views"
|
||
|
POLTERGEIST_PUBLIC = File.dirname(__FILE__) + "/public"
|
||
|
|
||
|
get '/poltergeist/test.js' do
|
||
|
File.read("#{POLTERGEIST_PUBLIC}/test.js")
|
||
|
end
|
||
|
|
||
|
get '/poltergeist/:view' do |view|
|
||
|
erb File.read("#{POLTERGEIST_VIEWS}/#{view}.erb")
|
||
|
end
|
||
|
end
|