Sha256: e452bc534981dabe47f6d01c34528748f0b1258526ded6053d2dc16f26ff9b7c

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Necromancer, '.inspect' do
  subject(:converter) { described_class.new }

  it "inspects converter instance" do
    expect(converter.inspect).to eq("#<Necromancer::Context@#{converter.object_id} @config=#{converter.configuration}>")
  end

  it "inspects conversion target" do
    conversion = converter.convert(11)
    expect(conversion.inspect).to eq("#<Necromancer::ConversionTarget@#{conversion.object_id} @object=11, @source=integer>")
  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/inspect_spec.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/inspect_spec.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/inspect_spec.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/inspect_spec.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/inspect_spec.rb
necromancer-0.5.1 spec/unit/inspect_spec.rb
necromancer-0.5.0 spec/unit/inspect_spec.rb