Sha256: bebe54989df9ed336e9c79108786f711a95bc613c9a402a90ebf836ea8dae42e

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class MoneyHelperTest < ActiveSupport::TestCase
  include RedmineCrm::MoneyHelper

  def test_price_to_currency
    assert_equal '$3,265.65', price_to_currency(3265.65, 'USD')
    assert_equal '3.265,65 ₽', price_to_currency(3265.65, 'RUB')
    assert_equal '3,200.0', price_to_currency(3200, '')
    assert_equal '3,200.0', price_to_currency(3200, 'Foo')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redmine_crm-0.0.63 test/money_helper_test.rb
redmine_crm-0.0.62 test/money_helper_test.rb
redmine_crm-0.0.61 test/money_helper_test.rb