Sha256: 788a41bcc5a2b5b315d68a9f0eacf7a211095cd195c0ad8d63b6f176b8ac2b7b

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

TEMPLATE_ENV = 'test' unless defined?(TEMPLATE_ENV)

require 'rubygems'
require 'spork'
require 'pry'

require 'spork/ext/ruby-debug'

Spork.prefork do
  # Loading more in this block will cause your tests to run faster. However,
  # if you change any configuration or code from libraries loaded here, you'll
  # need to restart spork for it take effect.

  ENV['RUBY_ENV'] ||= 'test'

  unless ENV['DRB']
    require 'simplecov'
    require 'simplecov-gem-adapter'
    SimpleCov.start 'gem'
  end

  require 'rspec'
  require 'rspec/autorun'
  require 'capybara'

  require File.dirname(__FILE__) + '/../config/environment.rb'

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

  # Include main application module
  include <%= app_name.camelize %>

  RSpec.configure do |config|
    config.include <%= app_name.camelize %>::Helper::Assertions

    config.mock_with :rspec

    config.order = 'random'
  end
end

Spork.each_run do
  # This code will be run each time you run your specs.
  unless ENV['DRB']
    require 'simplecov'
    require 'simplecov-gem-adapter'
    SimpleCov.start 'gem'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rgentpl-1.0.4 src/spec/spec_helper.rb.tt
rgentpl-1.0.3 src/spec/spec_helper.rb.tt
rgentpl-1.0.2 src/spec/spec_helper.rb.tt
rgentpl-1.0.1 src/spec/spec_helper.rb.tt