spec/lib/opay/payable_spec.rb in opay-1.0.0.beta vs spec/lib/opay/payable_spec.rb in opay-1.0.0

- old
+ new

@@ -2,10 +2,13 @@ module Opay describe Payable do subject { Order.new } - it { should have_one(:payment) } + describe 'associations' do + it { should have_one(:payment) } + end + it { should respond_to(:finished?) } it 'has unique session_id' do # unsaved record raises exception expect { subject.payment_session_id }.to raise_error RuntimeError