Sha256: 9ef6a2444bfbaffdd7dddd63ad64514bc3da2bf99cc64279f5a5e6584d5c54d4
Contents?: true
Size: 539 Bytes
Versions: 3
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
3 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simba-0.8.1 | lib/simba/templates/test/test_helper.rb |
simba-0.8.0 | lib/simba/templates/test/test_helper.rb |
simba-0.8.0 | template/test/test_helper.rb |