Sha256: 2817c3996b0f6b1374dc46a6c749f6d75e6aece0a3dd4f280a99ed35ae065c86

Contents?: true

Size: 393 Bytes

Versions: 9

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Sinclair::ConfigBuilder do
  describe 'yard' do
    describe '#instance_eval' do
      it 'sets variable from config' do
        config =  MyConfig.new

        builder = described_class.new(config, :name)

        builder.instance_eval { |c| c.name 'John' }

        expect(config.name).to eq('John')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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