Sha256: 1ae4d982086fe370b28d4e894aaf01b61bad13b9177fa64535a42ef9d0d484c6

Contents?: true

Size: 388 Bytes

Versions: 6

Compression:

Stored size: 388 Bytes

Contents

require 'base_spec_helper'
require 'active_record'
require 'rspec/rails/extensions/active_record/base'
require 'shoulda'
Dir[File.join(RAILS_ROOT, 'spec/support_models/**/*.rb')].each { |f| require f }

ActiveRecord::Base.establish_connection(
  YAML.load(File.read(RAILS_ROOT + '/config/database.yml'))['test']
)

ActiveSupport::Dependencies.autoload_paths << "#{RAILS_ROOT}/app/models"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_spec_harness-0.0.9 lib/generators/harness_spec_helper/templates/models_spec_helper.rb
rails_spec_harness-0.0.8 lib/generators/harness_spec_helper/templates/models_spec_helper.rb
rails_spec_harness-0.0.7 lib/generators/harness_spec_helper/templates/models_spec_helper.rb
rails_spec_harness-0.0.6 lib/generators/harness_spec_helper/templates/models_spec_helper.rb
rails_spec_harness-0.0.5 lib/generators/harness_spec_helper/templates/models_spec_helper.rb
rails_spec_harness-0.0.4 lib/generators/harness_spec_helper/templates/models_spec_helper.rb