Sha256: db7cf225dfe2391484c9908d0af98b915048aa105887703b1595642f2cd0ae7b
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
require 'test_helper' class TrueUnitsTest < ActiveSupport::TestCase test "valid method name" do assert 32.respond_to?("tu_hours") end test "invalid method name" do assert_not 84.respond_to?("tu_2") end test "test 1" do assert_equal "31 #{I18n.t("true_units.hours.v1")}", 31.tu_hours end test "test 2" do assert_equal "2 #{I18n.t("true_units.minutes.v2")}", 2.tu_minutes end test "test 3" do assert_equal "25 #{I18n.t("true_units.days.v3")}", 25.tu_days end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
true_units-0.0.1 | test/true_units_test.rb |