Sha256: 597ba5e636f9da70718a31bac54c01e79f4b4f5368d53afb38e8ea1cb3519bd7

Contents?: true

Size: 172 Bytes

Versions: 6

Compression:

Stored size: 172 Bytes

Contents

require 'spec_helper'

describe Invoice do
  it 'sets number on create with prefix' do
    invoice = Invoice.create
    expect(invoice.number).to eq('invoice/1')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
document_number-0.9.4 spec/models/invoices_spec.rb
document_number-0.9.3 spec/models/invoices_spec.rb
document_number-0.9.2 spec/models/invoices_spec.rb
document_number-0.9.1 spec/models/invoices_spec.rb
document_number-0.9.0 spec/models/invoices_spec.rb
document_number-0.0.1 spec/models/invoices_spec.rb