Sha256: a4814142b6d378332011d26c33ee57e96eb9de3c58405a5cacbcbb50762fe125

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 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__)]
<% if @mountable -%>
ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
<% end -%>
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.4.4 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.4.3 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.4.2 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.4.1 templates/gem_scaffold/test/test_helper.rb.tt
creategem-0.4.0 templates/gem_scaffold/test/test_helper.rb.tt