Sha256: ddeaacbcf3393ea457f39f151b530a7b49dd8b52a495a72cd8cde9225c464eac

Contents?: true

Size: 580 Bytes

Versions: 14

Compression:

Stored size: 580 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

# RSpec
require 'spec/expectations'

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

World do
  session = Webrat::SinatraSession.new
  session.extend(Webrat::Matchers)
  session.extend(Webrat::HaveTagMatcher)
  session
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.2.0.2 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.0.3 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.0.4 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.1 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.2.1 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.2.2 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.2 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.3.1 examples/sinatra/features/support/env.rb
aslakhellesoy-cucumber-0.2.3 examples/sinatra/features/support/env.rb
fcoury-cucumber-0.2.3.1 examples/sinatra/features/support/env.rb
kosmas58-cucumber-0.2.2.1 examples/sinatra/features/support/env.rb
cucumber-0.2.1 examples/sinatra/features/support/env.rb
cucumber-0.2.2 examples/sinatra/features/support/env.rb
cucumber-0.2.3 examples/sinatra/features/support/env.rb