Sha256: 73dfbbfbcb88e1e8c875e438c914c0dbe4311d349b77dc45a5f41a5dd591c621

Contents?: true

Size: 879 Bytes

Versions: 7

Compression:

Stored size: 879 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Necromancer::Conversions, '#to_hash' do
  it 'exports default conversions to hash' do
    conversions = Necromancer::Conversions.new
    expect(conversions.to_hash).to eq({})

    conversions.load

    expect(conversions.to_hash.keys.sort).to eq([
      'array->array',
      'array->boolean',
      'array->numeric',
      'boolean->boolean',
      'boolean->integer',
      'date->date',
      'datetime->datetime',
      'float->float',
      'hash->array',
      'integer->boolean',
      'integer->integer',
      'integer->string',
      'object->array',
      'range->range',
      'string->array',
      'string->boolean',
      'string->date',
      'string->datetime',
      'string->float',
      'string->integer',
      'string->numeric',
      'string->range',
      'string->time',
      'time->time'
    ])
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
pokedex-terminal-0.2.8 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/conversions/to_hash_spec.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/conversions/to_hash_spec.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/conversions/to_hash_spec.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/conversions/to_hash_spec.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/conversions/to_hash_spec.rb
necromancer-0.5.1 spec/unit/conversions/to_hash_spec.rb
necromancer-0.5.0 spec/unit/conversions/to_hash_spec.rb