Sha256: 2cb651b47a512a10455380ea1031f3e16b1ad9b343d6291c881e3f73477ab7b4
Contents?: true
Size: 398 Bytes
Versions: 13
Compression:
Stored size: 398 Bytes
Contents
require 'spec_helper' include NSConnector describe Invoice do it 'should not explode on creation' do Invoice.new end it 'should have a to_pdf method' do Restlet.should_receive(:execute!).and_return( [Base64::encode64('yay')] ) expect{Invoice.new.to_pdf}.to raise_error( ::ArgumentError, /could not find id/i ) expect(Invoice.new(:id => 1).to_pdf).to eql('yay') end end
Version data entries
13 entries across 13 versions & 1 rubygems