Sha256: 09d80c403da1e0a6f1d9666db39ebdeb27c6a1bfc6e64eadab79da6426a10404
Contents?: true
Size: 482 Bytes
Versions: 6
Compression:
Stored size: 482 Bytes
Contents
require 'spec_helper' module Opay describe Payable do subject { Order.new } 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 subject.save! subject.payment_session_id.should eq Digest::MD5.hexdigest('Order' + subject.id.to_s) end end end
Version data entries
6 entries across 6 versions & 1 rubygems