spec/support/shared_examples/base_operations.rb in danica-2.0.5 vs spec/support/shared_examples/base_operations.rb in danica-2.0.6
- old
+ new
@@ -6,15 +6,15 @@
shared_examples 'an object with an operation' do |clazz|
it { expect(result).to be_a(clazz) }
it 'includes other as parcel' do
- expect(result).to be_include(other)
+ expect(result).to include(other)
end
it 'includes the subject as parcel' do
- expect(result).to be_include(subject_included)
+ expect(result).to include(subject_included)
end
end
shared_examples 'an object with + operation' do
let(:other) { 104 }
@@ -65,13 +65,13 @@
let(:subject_included) { subject }
it { expect(result).to be_a(Danica::Sum) }
it 'includes other as negative parcel' do
- expect(result).to be_include(negative_other)
+ expect(result).to include(negative_other)
end
it 'includes the subject as parcel' do
- expect(result).to be_include(subject_included)
+ expect(result).to include(subject_included)
end
end