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