Sha256: de35c9a1dfe37bc3ccc8a7badf43df9452296896a4ae64678d8a38bcf5273aec

Contents?: true

Size: 571 Bytes

Versions: 3

Compression:

Stored size: 571 Bytes

Contents

require "assert"
require 'osheet/format/datetime'

class Osheet::Format::Datetime

  class UnitTests < Assert::Context
    desc "Osheet::Format::Datetime format"

    should "generate a basic style string and key" do
      f = Osheet::Format::Datetime.new 'mm/dd/yyyy'
      assert_equal "mm/dd/yyyy", f.style
      assert_equal "datetime_mm/dd/yyyy", f.key
    end

    should "generate a more complex style string and key" do
      f = Osheet::Format::Datetime.new 'yy-m'
      assert_equal 'yy-m', f.style
      assert_equal "datetime_yy-m", f.key
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
osheet-1.1.1 test/unit/format/datetime_tests.rb
osheet-1.1.0 test/unit/format/datetime_tests.rb
osheet-1.0.0 test/unit/format/datetime_tests.rb