Sha256: 213c988c9b03ba05075821167a9d539f1d1d501b6cb21b09c10838960e3757ea

Contents?: true

Size: 385 Bytes

Versions: 3

Compression:

Stored size: 385 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

3 entries across 3 versions & 1 rubygems

Version Path
rails_spec_harness-0.0.3 lib/generators/harness_spec_helper/templates/models_spec_helper.rb
rails_spec_harness-0.0.2 lib/generators/harness_spec_helper/templates/models_spec_helper.rb
rails_spec_harness-0.0.1 lib/generators/harness_spec_helper/templates/models_spec_helper.rb