spec/lib/danica/operator/addition_spec.rb in danica-2.7.1 vs spec/lib/danica/operator/addition_spec.rb in danica-2.7.2
- old
+ new
@@ -11,22 +11,18 @@
it_behaves_like 'an object that respond to basic_methods'
it_behaves_like 'an object with basic operation', ignore: %i(+ -)
it_behaves_like 'an object with + operation' do
- let(:subject_included) { 10 }
-
context 'when other is also a addition' do
let(:other) { described_class.new(200, 5) }
it 'includes the addition parcels' do
- expect(result).to include(200)
+ expect(result.to_gnu).to eq('10 + 2 + 200 + 5')
end
end
end
- it_behaves_like 'an object with - operation' do
- let(:subject_included) { 10 }
- end
+ it_behaves_like 'an object with - operation'
it_behaves_like 'a operator that joins many variables with same operation', {
calculated: 10,
numeric_variables: [ 1.5, 3.0, 3.5 ],
tex: {