Sha256: e644d9a681f687638ed1f1546e4e67ef37cb5ffd6fbabb308870a533dfd18a0f

Contents?: true

Size: 971 Bytes

Versions: 16

Compression:

Stored size: 971 Bytes

Contents

# frozen_string_literal: true

require "rspec/matchers"
require "equivalent-xml"

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

  def fixture_path(filename)
    File.expand_path("../fixtures/#{filename}", __FILE__)
  end
end

# configuration example
require_relative "../lib/lutaml/model"
require_relative "../lib/lutaml/model/xml_adapter/nokogiri_adapter"
require_relative "../lib/lutaml/model/xml_adapter/ox_adapter"
require_relative "../lib/lutaml/model/toml_adapter/toml_rb_adapter"

Lutaml::Model::Config.configure do |config|
  config.xml_adapter_type = :nokogiri
  config.json_adapter_type = :standard_json
  config.yaml_adapter_type = :standard_yaml
  config.toml_adapter_type = :toml_rb
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lutaml-model-0.6.3 spec/spec_helper.rb
lutaml-model-0.6.2 spec/spec_helper.rb
lutaml-model-0.6.1 spec/spec_helper.rb
lutaml-model-0.6.0 spec/spec_helper.rb
lutaml-model-0.5.4 spec/spec_helper.rb
lutaml-model-0.5.3 spec/spec_helper.rb
lutaml-model-0.5.2 spec/spec_helper.rb
lutaml-model-0.5.1 spec/spec_helper.rb
lutaml-model-0.5.0 spec/spec_helper.rb
lutaml-model-0.4.0 spec/spec_helper.rb
lutaml-model-0.3.30 spec/spec_helper.rb
lutaml-model-0.3.29 spec/spec_helper.rb
lutaml-model-0.3.28 spec/spec_helper.rb
lutaml-model-0.3.27 spec/spec_helper.rb
lutaml-model-0.3.26 spec/spec_helper.rb
lutaml-model-0.3.25 spec/spec_helper.rb