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

Version Path
metanorma-utils-1.4.5 spec/spec_helper.rb
metanorma-utils-1.4.4.2 spec/spec_helper.rb
metanorma-utils-1.4.4.1 spec/spec_helper.rb
metanorma-utils-1.4.4 spec/spec_helper.rb
metanorma-utils-1.4.3 spec/spec_helper.rb
metanorma-utils-1.4.2 spec/spec_helper.rb
metanorma-utils-1.4.1 spec/spec_helper.rb
metanorma-utils-1.4.0.1 spec/spec_helper.rb
metanorma-utils-1.4.0 spec/spec_helper.rb
metanorma-utils-1.3.2 spec/spec_helper.rb
metanorma-utils-1.3.1 spec/spec_helper.rb
metanorma-utils-1.3.0 spec/spec_helper.rb
metanorma-utils-1.2.9 spec/spec_helper.rb
metanorma-utils-1.2.8 spec/spec_helper.rb
metanorma-utils-1.2.7 spec/spec_helper.rb
metanorma-utils-1.2.6 spec/spec_helper.rb
metanorma-utils-1.2.5 spec/spec_helper.rb
metanorma-utils-1.2.4 spec/spec_helper.rb
metanorma-utils-1.2.3 spec/spec_helper.rb