Sha256: 82e7b964f062ac817862ad2ed2c2b4ab9e4c03104695ccd96ecd60540fb911ef
Contents?: true
Size: 476 Bytes
Versions: 15
Compression:
Stored size: 476 Bytes
Contents
shared_examples_for 'an options class method' do context 'with no argument' do subject { object.send(method) } it { is_expected.to be(default) } end context 'with a default value' do subject { object.send(method, value) } let(:value) { mock('value') } it { is_expected.to equal(object) } it 'sets the default value for the class method' do expect { subject }.to change { object.send(method) }.from(default).to(value) end end end
Version data entries
15 entries across 13 versions & 5 rubygems