Sha256: 09a83dd18be187f68f02e9b136391a4e30c33211a287e24152e29f8e5b4d3fed

Contents?: true

Size: 541 Bytes

Versions: 2

Compression:

Stored size: 541 Bytes

Contents

require 'rspec_for_generators/rails_helpers/all'

class TestApp < Rails::Application
  raise StandardError, "You must define a location for Rails.config_root_dir" if !Rails.config_root_dir
  config.root = Rails.config_root_dir
end

module Rails
  def self.root
    raise StandardError, "You must define a location for Rails.config_root_dir" if !Rails.config_root_dir    
    @root ||= File.expand_path(File.join(Rails.config_root_dir, '..', 'tmp', 'rails'))
  end
end

Rails.application = TestApp
Rails.application.config.root = Rails.root

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec_for_generators-0.2.1 lib/rspec_for_generators/rails_spec_helper.rb
rspec_for_generators-0.2.0 lib/rspec_for_generators/rails_spec_helper.rb