Sha256: a45f095e99ff9e07c6797ce626a3533cf2ccf7228792d8cdd99a8530568dc52a

Contents?: true

Size: 635 Bytes

Versions: 5

Compression:

Stored size: 635 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 'rails/all'

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

5 entries across 5 versions & 1 rubygems

Version Path
acts_as_textcaptcha-3.0.11 test/test_helper.rb
acts_as_textcaptcha-3.0.10 test/test_helper.rb
acts_as_textcaptcha-3.0.9 test/test_helper.rb
acts_as_textcaptcha-3.0.8 test/test_helper.rb
acts_as_textcaptcha-3.0.7 test/test_helper.rb