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