Sha256: 5afced4cb59bbd1150714582d0d44840e298328a7484b17d54ec292b110a6356

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

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

# RSpec matchers
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

World(Ginst::Test)

at_exit do 
  include Ginst::Test
  remove_temp_dir
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ginst-0.2.2 features/support/env.rb