Sha256: ede997e95475ccba83a197ace515be5a795c4a9b2f537f6b0a786489ba1a9690

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: false

require 'spec_helper'

describe 'yard Sinclair::Caster::ClassMethods' do
  let(:my_caster) { Class.new(Sinclair::Caster) }

  describe '.master_caster!' do
    it 'Making a class to be a master caster' do
      expect(my_caster.cast(10, :string)).to eq('10')

      my_caster.master_caster!

      expect(my_caster.cast(10, :string)).to eq(10)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinclair-1.15.0 spec/integration/yard/sinclair/caster/class_methods_spec.rb