File: can_spec.rb

package info (click to toggle)
ruby-necromancer 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: ruby: 1,578; sh: 4; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 276 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# 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