File: helper.rb

package info (click to toggle)
ruby-multi-xml 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 232 kB
  • sloc: ruby: 1,203; sh: 4; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def jruby?
  RUBY_PLATFORM == "java"
end

require "simplecov"

SimpleCov.start do
  add_filter "/spec"
  percent = (jruby?) ? 91.38 : 93.16
  minimum_coverage(percent)
end

require "multi_xml"
require "rspec"

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end