Sha256: 3a948e3e85ef227510d2f0d3a31bbdbb9953b1ca6c9cf8d2b0287f1d4081141e

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

require File.expand_path('../helper', __FILE__)

class TestConfigReader < Test::Unit::TestCase
  test_presence ToPass::ConfigReader

  def test_config_reader_is_a_file_reader
    assert_kind_of ToPass::FileReader, instance
  end

  def test_can_load_config_file
    assert_not_nil klass.load
    assert_kind_of Hash, klass.load
  end

  protected

  def klass
    ToPass::ConfigReader
  end
  def instance
    klass.new
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
to_pass-1.0.1 test/test_config_reader.rb
to_pass-1.0.0 test/test_config_reader.rb
to_pass-0.9.0 test/test_config_reader.rb