Sha256: f0636989b67eeb9a4b44a0a36fc0aa151f943555da581d014567353698f4c987

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

require 'rubygems'

gem 'rspec'
require 'spec'

current_path = File.expand_path(File.dirname(__FILE__))
require "#{current_path}/../lib/ginatra"

gem 'webrat', '>=0.4.4'
require 'webrat/sinatra'
gem 'rack-test', '>=0.3.0'
require 'rack/test'

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

Ginatra::App.set :environment, :test
Ginatra::Config[:git_dirs] = ["#{current_path}/../repos/*"]
 
Spec::Runner.configure do |config|
  def app
    Ginatra::App
  end
  
  config.include(Rack::Test::Methods)
  config.include(Webrat::Methods)
  config.include(Webrat::Matchers)
end 

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
lenary-ginatra-2.0.2 spec/spec_helper.rb
ginatra-2.1.1 spec/spec_helper.rb
ginatra-2.1.0 spec/spec_helper.rb
ginatra-2.0.2 spec/spec_helper.rb
ginatra-2.0.1 spec/spec_helper.rb