Sha256: ff151883663e5cbfb93b325bd3b82b3f65cc51e68a6bcb6b039e0eab7eb267ff
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
require 'rubygems' require 'bundler/setup' require 'simplecov' require 'coveralls' require 'tmpdir' require 'ffaker' require 'capybara' require 'json' require 'capybara/dsl' require 'active_support' require 'active_support/deprecation' require 'active_support/deprecation/method_wrappers' require 'active_support/core_ext' require 'repeater' require 'howitzer/exceptions' require 'howitzer/utils/log' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter '/spec/' add_filter '/config/' add_filter do |source_file| source_file.lines.count < 5 end add_group 'generators', '/generators' add_group 'lib', '/lib' end def project_path File.expand_path(File.join(File.dirname(__FILE__), '..')) end def lib_path File.join(project_path, 'lib') end def generators_path File.join(project_path, 'generators') end def log_path File.join(project_path, 'spec/log') end Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each{ |f| require f } RSpec.configure do |config| config.include GeneratorHelper config.disable_monkey_patching = true config.around(:each) do |ex| $stdout = StringIO.new $stderr = StringIO.new ex.run $stdout = STDOUT $stderr = STDERR end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
howitzer-1.1.1 | spec/spec_helper.rb |
howitzer-1.1.0 | spec/spec_helper.rb |