Sha256: d1fd82f7d8e23485876c991e0b2e2d2ce109a2085628c58e6f8cbe7192f084cd

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Necromancer, 'can?' do
  it "checks if conversion is possible" do
    converter = described_class.new
    expect(converter.can?(:string, :integer)).to eq(true)
    expect(converter.can?(:unknown, :integer)).to eq(false)
  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/can_spec.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/can_spec.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/can_spec.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/can_spec.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/can_spec.rb
necromancer-0.5.1 spec/unit/can_spec.rb
necromancer-0.5.0 spec/unit/can_spec.rb