Sha256: baf88cad854433a2b1db8f364dbb9490aafcb570eaeb4257311bd54c2f8b7c5d

Contents?: true

Size: 318 Bytes

Versions: 29

Compression:

Stored size: 318 Bytes

Contents

require 'test_helper'

class Kaui::DateHelperTest < ActiveSupport::TestCase
  include Kaui::DateHelper

  test "can parse from string" do
    assert_equal "2012-07-01", format_date("2012-07-01T12:55:44Z")
  end

  test "can parse from date" do
    assert_equal "2012-06-30", format_date(Date.new(2012, 7, 1))
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
kaui-0.4.3 test/unit/kaui/date_helper_test.rb
kaui-0.4.2 test/unit/kaui/date_helper_test.rb
kaui-0.4.1 test/unit/kaui/date_helper_test.rb
kaui-0.4.0 test/unit/kaui/date_helper_test.rb
kaui-0.3.1 test/unit/kaui/date_helper_test.rb
kaui-0.3.0 test/unit/kaui/date_helper_test.rb
kaui-0.2.6 test/unit/kaui/date_helper_test.rb
kaui-0.2.5 test/unit/kaui/date_helper_test.rb
kaui-0.2.4 test/unit/kaui/date_helper_test.rb
kaui-0.2.3 test/unit/kaui/date_helper_test.rb
kaui-0.2.2 test/unit/kaui/date_helper_test.rb
kaui-0.2.1 test/unit/kaui/date_helper_test.rb
kaui-0.2.0 test/unit/kaui/date_helper_test.rb
kaui-0.1.18 test/unit/kaui/date_helper_test.rb
kaui-0.1.17 test/unit/kaui/date_helper_test.rb
kaui-0.1.16 test/unit/kaui/date_helper_test.rb
kaui-0.1.15 test/unit/kaui/date_helper_test.rb
kaui-0.1.14 test/unit/kaui/date_helper_test.rb
kaui-0.1.12 test/unit/kaui/date_helper_test.rb
kaui-0.1.11 test/unit/kaui/date_helper_test.rb