Sha256: 60c61c70c1b9f4a4c76f5faa594a60b1f3228801bb95599807a5526152ee4375

Contents?: true

Size: 524 Bytes

Versions: 6

Compression:

Stored size: 524 Bytes

Contents

require "test/helper"
require 'osheet/format/custom'

module Osheet::Format

  class CustomTest < Test::Unit::TestCase
    context "Custom format" do
      should "generate a basic style string and key" do
        f = Custom.new '@'
        assert_equal "@", f.style
        assert_equal "custom_@", f.key
      end

      should "generate a more complex style string and key" do
        f = Custom.new 'm/d/yy'
        assert_equal 'm/d/yy', f.style
        assert_equal "custom_m/d/yy", f.key
      end
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
osheet-0.7.0 test/format/custom_test.rb
osheet-0.6.0 test/format/custom_test.rb
osheet-0.5.0 test/format/custom_test.rb
osheet-0.4.0 test/format/custom_test.rb
osheet-0.3.0 test/format/custom_test.rb
osheet-0.2.0 test/format/custom_test.rb