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

Version Path
metanorma-utils-1.2.2 spec/spec_helper.rb
metanorma-utils-1.2.1 spec/spec_helper.rb
metanorma-utils-1.2.0 spec/spec_helper.rb
metanorma-utils-1.1.0 spec/spec_helper.rb
metanorma-utils-1.0.9 spec/spec_helper.rb
metanorma-utils-1.0.8 spec/spec_helper.rb
metanorma-utils-1.0.7 spec/spec_helper.rb
metanorma-utils-1.0.6 spec/spec_helper.rb
metanorma-utils-1.0.5 spec/spec_helper.rb
metanorma-utils-1.0.4 spec/spec_helper.rb
metanorma-utils-1.0.3 spec/spec_helper.rb
metanorma-utils-1.0.2 spec/spec_helper.rb