Sha256: a90031f403b08a2742f8d41da8145610419ac1dd839cc1addb062a383b068319
Contents?: true
Size: 603 Bytes
Versions: 50
Compression:
Stored size: 603 Bytes
Contents
# Set up RSpec require 'webmock/rspec' Spec::Runner.configure do |config| config.include WebMock::API end # Set up generator tests require 'rails/all' require 'rails/generators' require 'rails/generators/test_case' class TestApp < Rails::Application config.root = File.dirname(__FILE__) end Rails.application = TestApp module Rails def self.root @root ||= File.expand_path("../../tmp/rails", __FILE__) end end Rails.application.config.root = Rails.root # Call configure to load the settings from # Rails.application.config.generators to Rails::Generators Rails::Generators.configure!
Version data entries
50 entries across 45 versions & 8 rubygems