spec/lib/danica/operator/multiplication_spec.rb in danica-2.7.1 vs spec/lib/danica/operator/multiplication_spec.rb in danica-2.7.2
- old
+ new
@@ -10,16 +10,14 @@
end
it_behaves_like 'an object that respond to basic_methods'
it_behaves_like 'an object with * operation' do
- let(:subject_included) { 4 }
-
- context 'when other is also a addition' do
+ context 'when other is also a multiplication' do
let(:other) { described_class.new(200, 5) }
- it 'includes the addition parcels' do
- expect(result).to include(200)
+ it 'includes the addition parcels in the result' do
+ expect(result.to_gnu).to eq('2 * 4 * 200 * 5')
end
end
end
it_behaves_like 'an object with basic operation', ignore: :*