Sha256: 4718a10fefb81c2ad3c8e989cd2133783be40168c4b8edf40eeee1ee1dfcaf39

Contents?: true

Size: 530 Bytes

Versions: 32

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe MyBuilder do
  describe '#yard' do
    subject(:builder) do
      described_class.new(klass, rescue_error: true)
    end

    let(:klass)    { Class.new }
    let(:instance) { klass.new }

    describe '#build' do
      before do
        builder.add_methods
        builder.build
      end

      context 'when calling built method' do
        it 'returns default value' do
          expect(instance.symbolize).to eq(:default)
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
sinclair-1.14.2 spec/integration/yard/my_builder_spec.rb
sinclair-1.14.1 spec/integration/yard/my_builder_spec.rb
sinclair-1.14.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.13.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.12.1 spec/integration/yard/my_builder_spec.rb
sinclair-1.12.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.11.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.10.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.9.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.8.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.7.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.7 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.6 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.5 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.4 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.3 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.2 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.1 spec/integration/yard/my_builder_spec.rb
sinclair-1.6.0 spec/integration/yard/my_builder_spec.rb
sinclair-1.5.2 spec/integration/yard/my_builder_spec.rb