Sha256: 87d322652a444d73e26d167bbbc25118ca794a530c726db3e362d5e71c85f2b2

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

require 'helper'

class TestSoFarSoGood < Minitest::Test
  should "figure out the vendor directory" do
    assert File.exists?(SoFarSoGood.send(:vendor_directory))
  end

  should "know the FAR" do
    assert_equal SoFarSoGood::Subchapter, SoFarSoGood.far.class
    assert_equal "FAR", SoFarSoGood.far.name
  end

  should "know the DFARs" do
    assert_equal SoFarSoGood::Subchapter, SoFarSoGood.dfars.class
    assert_equal "DFARS", SoFarSoGood.dfars.name
  end

  should "return subchapters" do
    assert_equal 2, SoFarSoGood.subchapters.count
  end

  should "return subparts" do
    assert_equal 1003, SoFarSoGood.subparts.count
  end

  should "accept subpart options" do
    assert_equal 926, SoFarSoGood.subparts(:reserved => false).count
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
so_far_so_good-1.2.0 test/so_far_so_good_test.rb