Sha256: f3f08d6c865928d1f6b5094fd0faa9fc2c10aff63eb260c05b99b1e4cd547886

Contents?: true

Size: 831 Bytes

Versions: 5

Compression:

Stored size: 831 Bytes

Contents

require 'simplecov'
SimpleCov.start

require 'rails'
require 'rubygems'
require 'bundler'
require 'active_record'
require 'net/http'

#require acts_as_cleo
require File.dirname(__FILE__) + '/../lib/acts_as_cleo'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'test/unit'
require 'shoulda'

file_dirname = File.dirname(__FILE__)

#Load Lib
$LOAD_PATH.unshift(File.join(file_dirname, '..', 'lib'))
$LOAD_PATH.unshift file_dirname

#Load sqlilte for testing
sqlite = File.join(file_dirname, 'db', 'connection', 'sqlite')
require sqlite

# Load Models
models_dir = File.join(file_dirname, 'models')
Dir[ models_dir + '/*.rb'].each { |m| require m }

class Test::Unit::TestCase
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acts_as_cleo-1.1.0 test/helper.rb
acts_as_cleo-1.0.0 test/helper.rb
acts_as_cleo-0.0.4 test/helper.rb
acts_as_cleo-0.0.3 test/helper.rb
acts_as_cleo-0.0.2 test/helper.rb