Sha256: 6380c20912aa43052d604de9687a833d66d0f0ead2281b3cdec5565f40f16e09
Contents?: true
Size: 1.42 KB
Versions: 8
Compression:
Stored size: 1.42 KB
Contents
require 'bundler' Bundler.setup require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start Bundler.require(:default, :test) require 'codeqa' RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' # override some config settings config.before(:all) do load_test_config end end Dir['./spec/support/**/*.rb'].sort.each{ |f| require f } def load_test_config Codeqa.configure do |c| c.excludes = ['vendor/**/*'] c.enabled_checker = %w(CheckStrangeChars CheckUtf8Encoding CheckConflict CheckPry RubocopLint) c.rubocop_formatter_cops = %w(EmptyLinesAroundBody EmptyLines TrailingWhitespace) c.erb_engine = 'erb' end end def check_with(klass, source) checker = klass.new(source) checker.check checker end def source_with(content='#ruby file', filename='prog.rb') Codeqa::Sourcefile.new(filename, content) end
Version data entries
8 entries across 8 versions & 1 rubygems