spec/lib/danica/operator/addition_spec.rb in danica-2.3.1 vs spec/lib/danica/operator/addition_spec.rb in danica-2.4.0
- old
+ new
@@ -1,9 +1,15 @@
require 'spec_helper'
describe Danica::Operator::Addition do
subject { described_class.new(10, 2) }
+ it 'initializes from array' do
+ expect do
+ described_class.new(10, 2)
+ end.not_to raise_error
+ end
+
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 }