spec/support/shared_examples/sinclair.rb in sinclair-1.11.0 vs spec/support/shared_examples/sinclair.rb in sinclair-1.12.0

- old
+ new

@@ -24,9 +24,15 @@ context 'when describing a method with string' do it 'creates a method using the string definition' do expect(object.defined).to eq(1) expect(object.defined).to eq(2) end + + context 'when the method has custom parameters' do + it 'creates a method using the string definition' do + expect(object.sum(10, 23)).to eq(33) + end + end end context 'when describing a method using a block specific type' do it 'creates a method with the block' do expect(object.type_block).to eq(3)