Sha256: 7fad90fc37ad0a8c1712b65f4e98b8e7cb9f4e8417fd118863043b619e87a852

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

# encoding: utf-8

require 'test_helper'

class InvoiceBar::CurrencyTest < ActiveSupport::TestCase
  should allow_mass_assignment_of :name
  should allow_mass_assignment_of :symbol
  should allow_mass_assignment_of :priority
  should validate_presence_of :name
  should validate_presence_of :symbol
  should validate_presence_of :priority
  should ensure_length_of(:symbol).is_at_most(3)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoice_bar-0.0.6 test/unit/invoice_bar/currency_test.rb
invoice_bar-0.0.5 test/unit/invoice_bar/currency_test.rb
invoice_bar-0.0.4 test/unit/invoice_bar/currency_test.rb
invoice_bar-0.0.3 test/unit/invoice_bar/currency_test.rb
invoice_bar-0.0.2 test/unit/invoice_bar/currency_test.rb
invoice_bar-0.0.1 test/unit/invoice_bar/currency_test.rb