Sha256: 8d58ae04ade1bfb705ec8c595fcfc137251a86e33bd0214edb26044e0003ba6c

Contents?: true

Size: 765 Bytes

Versions: 16

Compression:

Stored size: 765 Bytes

Contents

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

gem 'rack-test', '=0.3.0'
gem 'aslakhellesoy-webrat', '=0.4.4.1'
gem 'sinatra', '=0.9.4'

# 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 'rack/test'
require 'webrat'

Webrat.configure do |config|
  config.mode = :rack
end

class MyWorld
  include Rack::Test::Methods
  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

16 entries across 16 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.92 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.93.1 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.93 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.94.1 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.94 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.3.95 examples/sinatra/features/support/env.rb
kosmas58-cucumber-0.3.92 examples/sinatra/features/support/env.rb
kosmas58-cucumber-0.3.93.1 examples/sinatra/features/support/env.rb
kosmas58-cucumber-0.3.94 examples/sinatra/features/support/env.rb
pezra-cucumber-0.3.94.1 examples/sinatra/features/support/env.rb
square-cucumber-0.3.93.1.1 examples/sinatra/features/support/env.rb
square-cucumber-0.3.93.1 examples/sinatra/features/support/env.rb
cucumber-0.3.95 examples/sinatra/features/support/env.rb
cucumber-0.3.94 examples/sinatra/features/support/env.rb
cucumber-0.3.92 examples/sinatra/features/support/env.rb
cucumber-0.3.93 examples/sinatra/features/support/env.rb