Sha256: 6da7b02b81dbbcedb79a409b0bb61b6b610d14e66a2d931737d679cc9659a235

Contents?: true

Size: 631 Bytes

Versions: 2

Compression:

Stored size: 631 Bytes

Contents

require "assert"
require 'xmlss/style/number_format'

require 'enumeration/assert_macros'

class Xmlss::Style::NumberFormat

  class UnitTests < Assert::Context
    include Enumeration::AssertMacros

    desc "Xmlss::Style::NumberFormat"
    before { @nf = Xmlss::Style::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 = Xmlss::Style::NumberFormat.new("General")
      assert_equal "General", nf.format
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xmlss-1.0.1 test/unit/style/number_format_tests.rb
xmlss-1.0.0 test/unit/style/number_format_tests.rb