Sha256: bbaf8f0e32902e03b26521035656643c653030b5380f9b60e45cdb817467bee7

Contents?: true

Size: 461 Bytes

Versions: 25

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Sinclair::ConfigBuilder do
  describe 'yard' do
    describe '#instance_eval' do
      subject(:builder) do
        described_class.new(config, :name)
      end

      let(:config) { MyConfig.new }

      it 'sets variable from config' do
        expect { builder.instance_eval { |c| c.name 'John' } }
          .to change(config, :name)
          .from(nil).to('John')
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

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