Sha256: 31be5c14a6c7d0b96f58f4c89d3d5d71107dde50890c80facce51909980c43f1

Contents?: true

Size: 898 Bytes

Versions: 5

Compression:

Stored size: 898 Bytes

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"
require 'pry-rails'

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Load fixtures from the engine
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
end

#TODO: SHould add a helper for this to Rails::Generators::TestCase
# so you could do like: stage_rails_files("../dummy_test_files", "app", "config", ...)
def copy_dummy_files
  dummy_file_dir = File.expand_path("../lib/generators/dummy_test_files", __FILE__)
  FileUtils.cp_r("#{dummy_file_dir}/app", "#{destination_root}/app")
  FileUtils.cp_r("#{dummy_file_dir}/config", "#{destination_root}/config")
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
controller_scaffolding-1.0.4 test/test_helper.rb
controller_scaffolding-1.0.3 test/test_helper.rb
controller_scaffolding-1.0.2 test/test_helper.rb
controller_scaffolding-1.0.1 test/test_helper.rb
controller_scaffolding-1.0.0 test/test_helper.rb