Sha256: 599e05ad31821c96ee9e41e6e3b08083362077a7d7ef2d40c885251663657deb

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

require 'coveralls'
Coveralls.wear!

<% unless @plugin -%>
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require '<%= @gem_name %>'
<% end -%>

require 'minitest/autorun'

require 'minitest/reporters'
Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
# Filter out Minitest backtrace while allowing backtrace from other libraries to be shown.
Minitest.backtrace_filter = Minitest::BacktraceFilter.new

<% if @plugin -%>
require File.expand_path("../../test/dummy/config/environment.rb",  __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
require "rails/test_help"

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

# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
  ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
  ActiveSupport::TestCase.fixtures :all
end
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
creategem-0.3.4 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.3.3 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.3.2 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.3.1 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.3.0 templates/gem_scaffold/test/test_helper.rb.tt