Sha256: 8a6c39b7d8b2afbe7a787d729061051e3b8d05dcda36c349a5dc59ba5049f12e

Contents?: true

Size: 507 Bytes

Versions: 2

Compression:

Stored size: 507 Bytes

Contents

require 'bbq/rspec'
require 'rack/builder'

Bbq::Core.app = Rack::Builder.new do
  map '/test_page' do
    html_page = <<-EOP
      <!DOCTYPE html>
      <html>
        <head>
          <title>Ponycorns</title>
        </head>
        <body>
          <ul id="unicorns">
            <li>Pink</li>
          </ul>
          <ul id="ponies">
            <li>Violet</li>
          </ul>
        </body>
      </html>
    EOP

    run ->(env) { ['200', {'Content-Type' => 'text/html'}, [html_page]] }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbq-rspec-0.4.0 spec/spec_helper.rb
bbq-rspec-0.3.0 spec/spec_helper.rb