Sha256: 07d6711579deca7287334b7dd4745c8a2b1bdf5a83bc60e1c6374ca4c1e6bc2f
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
require 'coveralls' Coveralls.wear! $:.unshift File.expand_path(__dir__) $:.unshift File.expand_path('../lib',__dir__) $:.unshift File.expand_path('support',__dir__) require 'bundler' Bundler.setup :default, :test require 'simplecov' SimpleCov.start 'praxis' require 'pry' require 'praxis' require 'rack/test' require 'rspec/its' require 'rspec/collection_matchers' Dir["#{File.dirname(__FILE__)}/../lib/praxis/plugins/*.rb"].each do |file| require file end Dir["#{File.dirname(__FILE__)}/support/*.rb"].each do |file| require file end def suppress_output original_stdout, original_stderr = $stdout.clone, $stderr.clone $stderr.reopen File.new('/dev/null', 'w') $stdout.reopen File.new('/dev/null', 'w') yield ensure $stdout.reopen original_stdout $stderr.reopen original_stderr end RSpec.configure do |config| config.include Rack::Test::Methods config.before(:suite) do Praxis::Mapper::Resource.finalize! Praxis::Blueprint.caching_enabled = true Praxis::Application.instance.setup(root:'spec/spec_app') end config.before(:each) do Praxis::Blueprint.cache = Hash.new do |hash, key| hash[key] = Hash.new end end config.before(:all) do # disable logging below warn level Praxis::Application.instance.logger.level = 2 # warn end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
praxis-2.0.pre.5 | spec/spec_helper.rb |
praxis-2.0.pre.4 | spec/spec_helper.rb |
praxis-2.0.pre.3 | spec/spec_helper.rb |