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

- old
+ new

@@ -14,14 +14,14 @@ before do stub_const 'PR::DefineAndRegister', double end it 'sets up field to define fields' do - PR::DefineAndRegister.should_receive(:[]).with form_klass, name, type, {} + expect(PR::DefineAndRegister).to receive(:[]).with form_klass, name, type, {} form_klass.field name, type end it 'sets up field to define fields and passes in options' do - PR::DefineAndRegister.should_receive(:[]).with form_klass, name, type, my: :option + expect(PR::DefineAndRegister).to receive(:[]).with form_klass, name, type, my: :option form_klass.field name, type, my: :option end end end