Sha256: b9b71d0426b67b5753fe0eaf00e94f915c93d318233248a760dbe3ce14e2ed63

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 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
# minitest
require "minitest/autorun"
# rack test
require "rack/test"
# database_clean
DatabaseCleaner.strategy = :truncation

class TestCase < MiniTest::Unit::TestCase
  def initialize *xs
    super
    DatabaseCleaner.clean
  end
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simba-0.0.3 lib/simba/base_app/test/test_helper.rb
simba-0.0.2 lib/simba/base_app/test/test_helper.rb
simba-0.0.1 lib/simba/base_app/test/test_helper.rb