Sha256: 37320a7e0c2673e61a55d0efc14c0aa714ad3b26e5a68fb700249f5276bf3392

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

require "test_helper"

class DatePickerTest < ActiveSupport::TestCase

  test "DatePicker Formatting" do
    assert_equal "yy/mm/dd", Cms::DatePicker.jquery_format
  end

  test "Formats date for UI output" do
    date = DateTime.new(2011, 3, 14)
    assert_equal "2011/03/14", Cms::DatePicker.format_for_ui(date)
  end

  test "Formatting of nil dates" do
    assert_nil(Cms::DatePicker.format_for_ui(nil))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browsercms-3.4.2 test/unit/helpers/date_picker_test.rb
browsercms-3.4.2.rc1 test/unit/helpers/date_picker_test.rb
browsercms-3.4.1 test/unit/helpers/date_picker_test.rb
browsercms-3.4.0 test/unit/helpers/date_picker_test.rb
browsercms-3.4.0.rc2 test/unit/helpers/date_picker_test.rb
browsercms-3.4.0.rc1 test/unit/helpers/date_picker_test.rb