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