Sha256: 999185bf970eb4cd54c5cdf6cbeaf2e5ae3f2722b105ab65f2fff2a5bd80f498

Contents?: true

Size: 552 Bytes

Versions: 6

Compression:

Stored size: 552 Bytes

Contents

# coding utf-8

require 'test_helper'

module Adherent
  class PaymentTest < ActiveSupport::TestCase
    test 'le fixture :one doit être valid' do
      @ap = adherent_payments(:one)
      assert_equal true, @ap.valid?
    end
    
    test 'le fixture :two n est pas valide car montant négatif' do
      @ap = adherent_payments(:two)
      assert_equal false, @ap.valid?
    end
    
    test 'le fixture invalid_mode n est pas valide' do
      @ap = adherent_payments(:invalid_mode)
      assert_equal false, @ap.valid?
    end
    
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adherent-0.1.1 test/unit/adherent/payment_test.rb
adherent-0.1.0 test/unit/adherent/payment_test.rb
adherent-0.0.9 test/unit/adherent/payment_test.rb
adherent-0.0.7 test/unit/adherent/payment_test.rb
adherent-0.0.6 test/unit/adherent/payment_test.rb
adherent-0.0.5 test/unit/adherent/payment_test.rb