Sha256: cfa469b999e03acf30565c0b25820c18922a8fe0696da2f7618f3c9310d11b4f

Contents?: true

Size: 629 Bytes

Versions: 3

Compression:

Stored size: 629 Bytes

Contents

require_relative '../helper'

class PostageAppTest < MiniTest::Test
  def test_method_configure
    PostageApp.configure do |config|
      config.api_key = 'abcdefg12345'
      config.host = 'test.test'
    end

    assert_equal 'abcdefg12345', PostageApp.configuration.api_key
    assert_equal 'test.test', PostageApp.configuration.host

  ensure
    PostageApp.configuration_reset!
  end

  def test_version
    assert PostageApp.version.match(/\A\d+\.\d+\.\d+\z/), -> {
      "%s is not a valid version number" % PostageApp.version.inspect
    }
  end
  
  def test_logger
    assert PostageApp.logger.is_a?(Logger)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
postageapp-1.4.2 test/unit/postageapp_test.rb
postageapp-1.4.1 test/unit/postageapp_test.rb
postageapp-1.4.0 test/unit/postageapp_test.rb