Sha256: 6ff01187af4133f17b837c98606b72901256848f16200c73ea30cc3d23176c97
Contents?: true
Size: 912 Bytes
Versions: 2
Compression:
Stored size: 912 Bytes
Contents
require "bundler" unless ENV["TRAVIS_CI"] if RUBY_VERSION[0] == "2" require "byebug" else require "debugger" end end if ENV["TRAVIS_CI"] require "simplecov" require "coveralls" SimpleCov.formatter = Coveralls::SimpleCov::Formatter SimpleCov.start do add_filter "/spec/" end end if ENV["TRAVIS_CI"] Bundler.require else Bundler.require(:default, :tools) end if defined?(Rails) && !Rails.respond_to?(:env) module Rails def self.env "default_env" end end end require "activerecord-nulldb-adapter" ActiveRecord::Base.establish_connection adapter: :nulldb Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f } RSpec.configure do |config| config.order = 'random' config.extend ControllerHelpers config.extend FailureMessageHelpers config.extend ModelHelpers config.extend WithContextsHelpers config.include MatchHelpers end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
warp-1.3.1 | spec/spec_helper.rb |
warp-1.3.0 | spec/spec_helper.rb |