spec/unit/pr/build_model_spec.rb in pr-0.0.6 vs spec/unit/pr/build_model_spec.rb in pr-0.0.7

- old
+ new

@@ -9,15 +9,15 @@ let(:form) { double "form", __a: field_a, __b: field_b } let(:builder) { PR::BuildModel.new registry } it 'gets the fields' do - registry.should_receive(:fields) + expect(registry).to receive(:fields) builder.for form, model end it 'converts fields to values' do - field_a.should_receive(:convert) - field_b.should_receive(:convert) + expect(field_a).to receive(:convert) + expect(field_b).to receive(:convert) builder.for form, model end it 'iterated over the fields and sets values' do builder.for form, model expect(model.a).to eq "a_value"