require "test_helper"

class I18nTest < ActiveSupport::TestCase

  test "t" do
    assert_equal "Hello", Typus::I18n.t("Hello")
    assert_equal "Hello", Typus::I18n.t(".hello", :default => "Hello")
  end

  test "default_locale" do
    assert_equal :en, Typus::I18n.default_locale
  end

  test "available_locales" do
    assert Typus::I18n.available_locales.is_a?(Hash)
  end

end

require "test_helper"

class I18nTest < ActiveSupport::TestCase

  test "t" do
    assert_equal "Hello", Typus::I18n.t("Hello")
    assert_equal "Hello", Typus::I18n.t(".hello", :default => "Hello")
    assert_equal "Hello @fesplugas", Typus::I18n.t("Hello %{human}!", :human => "@fesplugas")
  end

  test "default_locale" do
    assert_equal :en, Typus::I18n.default_locale
  end

  test "available_locales" do
    assert Typus::I18n.available_locales.is_a?(Hash)
  end

end

Test to verify Typus::I18n.t interpolation.
Test to verify Typus::I18n.t interpolation.
