Permalink
Browse files

Use sinatra for test apps

  • Loading branch information...
1 parent 265a7da commit 327ae85e8673f838f3439e940e6d9d48b709db96 @jferris jferris committed Jul 8, 2012
Showing with 521 additions and 601 deletions.
  1. +7 −12 spec/driver_rendering_spec.rb
  2. +464 −585 spec/driver_spec.rb
  3. +4 −0 spec/spec_helper.rb
  4. +46 −4 spec/support/app_runner.rb
@@ -6,18 +6,13 @@
include AppRunner
let(:driver) do
- driver_for_app do |env|
- body = <<-HTML
- <html>
- <body>
- <h1>Hello World</h1>
- </body>
- </html>
- HTML
- [200,
- { 'Content-Type' => 'text/html', 'Content-Length' => body.length.to_s },
- [body]]
- end
+ driver_for_html(<<-HTML)
+ <html>
+ <body>
+ <h1>Hello World</h1>
+ </body>
+ </html>
+ HTML
end
before(:each) do
Oops, something went wrong.

0 comments on commit 327ae85

Please sign in to comment.