Sha256: 4fddbe609188f2d1a7bb1551fa37cab4f6cc4e4ec30c2b59502c8ec639b8453f

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

require "assert"
require 'enumeration/assert_macros'

require 'xmlss/style/number_format'

module Xmlss::Style
  class NumberFormatTest < Assert::Context
    include Enumeration::AssertMacros

    desc "Xmlss::Style::NumberFormat"
    before { @nf = NumberFormat.new }
    subject { @nf }

    should have_class_method :writer
    should have_accessor :format

    should "know its writer" do
      assert_equal :number_format, subject.class.writer
    end

    should "set attributes at init" do
      nf = NumberFormat.new("General")
      assert_equal "General", nf.format
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xmlss-1.0.0.rc.4 test/style/number_format_test.rb
xmlss-1.0.0.rc.3 test/style/number_format_test.rb
xmlss-1.0.0.rc.2 test/style/number_format_test.rb
xmlss-1.0.0.rc.1 test/style/number_format_test.rb