Sha256: f374d0c9660dac4003017467e9534433f4424bd764c3b0805dfff844d3dfd5c6

Contents?: true

Size: 481 Bytes

Versions: 9

Compression:

Stored size: 481 Bytes

Contents

require "assert"
require 'osheet/format/custom'

module Osheet::Format

  class CustomTest < Assert::Context
    desc "Custom format"

    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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
osheet-1.0.0.rc.4 test/format/custom_test.rb
osheet-1.0.0.rc.3 test/format/custom_test.rb
osheet-1.0.0.rc.2 test/format/custom_test.rb
osheet-1.0.0.rc.1 test/format/custom_test.rb
osheet-0.10.0 test/format/custom_test.rb
osheet-0.9.2 test/format/custom_test.rb
osheet-0.9.1 test/format/custom_test.rb
osheet-0.9.0 test/format/custom_test.rb
osheet-0.8.0 test/format/custom_test.rb