Sha256: b71af9e6b3a6937219d1f34e42dec70879c979470fb03effacbb53fb36113259

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

# coding: utf-8

require 'test_helper'

class Thinreports::Generator::TestConfiguration < Minitest::Test
  include Thinreports::TestHelper

  def setup
    @config = Thinreports::Generator::Configuration.new
  end

  def test_default_should_return_pdf_by_default
    assert_equal @config.default, :pdf
  end

  def test_default_should_raise_when_value_is_unknown_generator_type
    assert_raises Thinreports::Errors::UnknownGeneratorType do
      @config.default = :unknown
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 test/unit/generator/test_configuration.rb
thinreports-0.9.0 test/unit/generator/test_configuration.rb