Sha256: 64edda6007e666138217477c64a9a8fac4ef3520ddf3d99f8928870feb44741d
Contents?: true
Size: 939 Bytes
Versions: 2
Compression:
Stored size: 939 Bytes
Contents
RAILS_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'vanilla')) dir = File.dirname(__FILE__) $LOAD_PATH.unshift(dir) ENV["RAILS_ENV"] = "test" require "#{File.join(RAILS_PATH, 'config', 'environment')}" require 'engine-assets' require 'spec' require 'spec/autorun' require 'spec/rails' require 'support/helpers/textmate_helper' Spec::Runner.configure do |config| include Support::Helpers config.fixture_path = "#{File.dirname(__FILE__)}/../spec/support/fixtures" config.mock_with :rr config.use_transactional_fixtures = true config.use_instantiated_fixtures = false # def add_fixture_views(controller_class) # controller_class.prepend_view_path(File.join(basepath, '..', 'fixtures', 'app', 'views')) # controller_class.prepend_view_path(File.join(basepath, '..', 'fixtures', 'public')) # end # # def basepath # @basepath ||= File.join(File.dirname(__FILE__), '..') # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
engine-assets-0.2.0 | spec/spec_helper.rb |
engine-assets-0.1.0 | spec/spec_helper.rb |