Sha256: 4b304905b4bdd01cd736573df683f0d9046b49187350a7c42ea29228fb00afdb

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

ENV['RACK_ENV'] ||= "test"
require_relative "../config/boot.rb"

# factory_girl
dir = File.expand_path File.dirname(__FILE__)
Dir.glob "#{dir}/factory/**/*_factory.rb" do |f|
  require f
end

require "minitest/autorun"
require "rack/test"
DatabaseCleaner.strategy = :truncation

class TestCase < MiniTest::Unit::TestCase
  include FactoryGirl::Syntax::Methods
  def initialize *xs
    super
    DatabaseCleaner.clean
  end
end

class FunctionalTestCase < TestCase
  include Rack::Test::Methods
  def app
    Sinatra::Application
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simba-0.0.5 lib/simba/base_app/test/test_helper.rb
simba-0.0.4 lib/simba/base_app/test/test_helper.rb