Sha256: 7fefbd7c3e56152111a9a115472099debab2f744dcb0b8596259818057ec6ada
Contents?: true
Size: 790 Bytes
Versions: 19
Compression:
Stored size: 790 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, :docfile def initialize(id = nil) @id = id end def attr(elem) case elem when "docfile" then @docfile end end end def xmlpp(xml) s = "" f = REXML::Formatters::Pretty.new(2) f.compact = true f.write(REXML::Document.new(xml), s) s end
Version data entries
19 entries across 19 versions & 1 rubygems