LanguagesRubyRSpecOn this pageRSpecBasic SetupSolutiondef add(a, b) a + b endCopydef add(a, b) a + b endCopyTestsdescribe 'add' do it 'returns the sum of its arguments' do expect(add(1, 2)).to eq(3) end endCopydescribe 'add' do it 'returns the sum of its arguments' do expect(add(1, 2)).to eq(3) end endCopy