File: spec_helper.rb

package info (click to toggle)
ruby-arbre 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 532 kB
  • sloc: ruby: 1,912; makefile: 7; sh: 4
file content (18 lines) | stat: -rw-r--r-- 329 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

if ENV.fetch('COVERAGE', false)
  require 'simplecov'
  SimpleCov.start do
    add_filter %r{^/spec/}
    minimum_coverage 90
    maximum_coverage_drop 0.2
  end
end

require 'support/bundle'
require 'combustion'
require 'arbre'

def arbre(&block)
  Arbre::Context.new assigns, helpers, &block
end