Sha256: 097c8c4ac71dbd79795d2df982669b2e8e111098830187ca0ad22b221e43b3e3

Contents?: true

Size: 424 Bytes

Versions: 9

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe MyBuilder do
  describe '#yard' do
    let(:klass) { Class.new }

    describe 'Passing building options (Used on subclasses)' do
      it 'builds the methods' do
        MyBuilder.build(klass, rescue_error: true) do
          add_methods
        end

        instance = klass.new

        expect(instance.symbolize).to eq(:default)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/integration/yard/my_builder_spec.rb
sinclair-2.1.0 spec/integration/yard/my_builder_spec.rb
sinclair-2.0.1 spec/integration/yard/my_builder_spec.rb
sinclair-2.0.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.16.3 spec/integration/yard/my_builder_spec.rb
sinclair-1.16.2 spec/integration/yard/my_builder_spec.rb
sinclair-1.16.1 spec/integration/yard/my_builder_spec.rb
sinclair-1.16.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.15.0 spec/integration/yard/my_builder_spec.rb