Sha256: 29df00fad7b1d96014cdfba0e0202987cd5734e5a77a07ee9b2e8dd78036abee

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

TEMPLATE_ENV = 'test' unless defined?(TEMPLATE_ENV)

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

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 'capybara'

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

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

  # Include main application module
  include Rgentpl

  RSpec.configure do |config|
    config.include Rgentpl::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

5 entries across 5 versions & 1 rubygems

Version Path
rgentpl-1.0.9 spec/spec_helper.rb
rgentpl-1.0.8 spec/spec_helper.rb
rgentpl-1.0.7 spec/spec_helper.rb
rgentpl-1.0.6 spec/spec_helper.rb
rgentpl-1.0.5 spec/spec_helper.rb