Sha256: f9412a104171fd81c10630d058c312eba74dd6dd722949802143db5d9b54e529

Contents?: true

Size: 625 Bytes

Versions: 13

Compression:

Stored size: 625 Bytes

Contents

# See http://wiki.github.com/aslakhellesoy/cucumber/sinatra
# for more details about Sinatra with Cucumber

# Sinatra
app_file = File.join(File.dirname(__FILE__), *%w[.. .. app.rb])
require app_file
# Force the application name because polyglot breaks the auto-detection logic.
Sinatra::Application.app_file = app_file

require 'spec/expectations'

require 'webrat'
Webrat.configure do |config|
  config.mode = :rack
end

class MyWorld
  include Webrat::Methods
  include Webrat::Matchers

  Webrat::Methods.delegate_to_session :response_code, :response_body

  def app
    Sinatra::Application
  end
end

World{MyWorld.new}

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.3.11.200907091518 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.11.5 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.11.6 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.90 examples/sinatra/features/support/env.rb
jwilger-cucumber-0.3.11.200906161550 examples/sinatra/features/support/env.rb
jwilger-cucumber-0.3.11.200907091518 examples/sinatra/features/support/env.rb
kosmas58-cucumber-0.3.11.6 examples/sinatra/features/support/env.rb
kosmas58-cucumber-0.3.90 examples/sinatra/features/support/env.rb
square-cucumber-0.3.12.2 examples/sinatra/features/support/env.rb
squirrel-cucumber-0.3.12.1 examples/sinatra/features/support/env.rb
squirrel-cucumber-0.3.12 examples/sinatra/features/support/env.rb
cucumber-0.3.90 examples/sinatra/features/support/env.rb
cucumber-0.3.91 examples/sinatra/features/support/env.rb