Sha256: d0312cfac72ca96c84a7e11cf492f38ae6cf04054d2b1c83dc216704c8bb91fd
Contents?: true
Size: 794 Bytes
Versions: 12
Compression:
Stored size: 794 Bytes
Contents
require "simplecov" SimpleCov.start do add_filter "/spec/" end require "rspec/matchers" require "equivalent-xml" require "metanorma-utils" require "rexml/document" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" # Disable RSpec exposing methods globally on `Module` and `main` config.disable_monkey_patching! config.expect_with :rspec do |c| c.syntax = :expect end end class Dummy attr_accessor :id attr_accessor :docfile def initialize(id = nil) @id = id end def attr(x) case x when "docfile" then @docfile end end end def xmlpp(x) s = "" f = REXML::Formatters::Pretty.new(2) f.compact = true f.write(REXML::Document.new(x), s) s end
Version data entries
12 entries across 12 versions & 1 rubygems