Sha256: 44d0a4ca6073cb352b4c00f642ac2e22ba4d8b7e19317290ee263a87fa291e25

Contents?: true

Size: 667 Bytes

Versions: 17

Compression:

Stored size: 667 Bytes

Contents

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

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

Rails.backtrace_cleaner.remove_silencers!

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

# Remove tmp dir of dummy app
FileUtils.rm_rf "#{File.dirname(__FILE__)}/dummy/tmp"

ActiveSupport::TestCase.class_eval do
  def fixture(filename)
    File.open(File.join(File.dirname(__FILE__), "fixtures", filename)) do |f|
      contents = f.read.strip
      contents.gsub(/__RAILS_ROOT__/, Rails.root.to_s) if contents
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
browserify-rails-3.1.0 test/test_helper.rb
browserify-rails-3.0.1 test/test_helper.rb
browserify-rails-3.0.0 test/test_helper.rb
browserify-rails-2.2.1 test/test_helper.rb
browserify-rails-2.2.0 test/test_helper.rb
browserify-rails-2.1.0 test/test_helper.rb
browserify-rails-2.0.3 test/test_helper.rb
browserify-rails-2.0.2 test/test_helper.rb
browserify-rails-1.5.0 test/test_helper.rb
browserify-rails-1.4.0 test/test_helper.rb
browserify-rails-1.3.0 test/test_helper.rb
browserify-rails-1.2.0 test/test_helper.rb
browserify-rails-1.1.0 test/test_helper.rb
browserify-rails-1.0.2 test/test_helper.rb
browserify-rails-1.0.1 test/test_helper.rb
browserify-rails-1.0.0 test/test_helper.rb
browserify-rails-1.0.0b test/test_helper.rb