Sha256: ba9f4632b0b6c40395cae0c416218b8c843e160ccd17d2b86e3c7c4195cc9b6e

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 1 rubygems

Version Path
sinclair-1.3.4 spec/integration/yard/sinclair/config_builder_spec.rb
sinclair-1.3.3 spec/integration/yard/sinclair/config_builder_spec.rb
sinclair-1.3.2 spec/integration/yard/sinclair/config_builder_spec.rb
sinclair-1.3.1 spec/integration/yard/sinclair/config_builder_spec.rb
sinclair-1.3.0 spec/integration/yard/sinclair/config_builder_spec.rb