Sha256: 4828d3f8e459984281e0ace218c9c2fd4a72b0b0dc239141f20119997a924b4f

Contents?: true

Size: 655 Bytes

Versions: 7

Compression:

Stored size: 655 Bytes

Contents

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)+'./../lib'))

ENV['RAILS_ENV'] = 'test'

if ENV['COVERAGE']
  require "simplecov"
  SimpleCov.start do
    add_filter '/test/'
  end
  SimpleCov.at_exit do
    SimpleCov.result.format!
    `open ./coverage/index.html` if RUBY_PLATFORM =~ /darwin/
  end
end

require 'minitest/autorun'
require 'fakeweb'

require 'active_record'
require 'rails'

require 'acts_as_textcaptcha'
require './test/test_models'

# load and initialize test db schema
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => 'acts_as_textcaptcha.sqlite3.db')
load(File.dirname(__FILE__) + "/schema.rb")

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
acts_as_textcaptcha-3.0.6 test/test_helper.rb
acts_as_textcaptcha-3.0.5 test/test_helper.rb
acts_as_textcaptcha-3.0.4 test/test_helper.rb
acts_as_textcaptcha-3.0.3 test/test_helper.rb
acts_as_textcaptcha-3.0.2 test/test_helper.rb
acts_as_textcaptcha-3.0.1 test/test_helper.rb
acts_as_textcaptcha-3.0.0 test/test_helper.rb