Sha256: 463b7f01e0f2f9951ba8f32b570ca6e14d6e0851c21c0034fe2af63550c1dab4

Contents?: true

Size: 493 Bytes

Versions: 8

Compression:

Stored size: 493 Bytes

Contents

require 'test_helper'
require 'peddler/marketplace'

class TestPeddlerMarketplace < MiniTest::Test
  def setup
    @marketplace = Peddler::Marketplace.new('ATVPDKIKX0DER')
  end

  def test_has_a_host
    assert @marketplace.host
  end

  def test_has_an_encoding
    assert @marketplace.encoding
  end

  def test_guards_against_bad_marketplace_ids
    assert_raises(Peddler::Marketplace::BadId) do
      marketplace = Peddler::Marketplace.new('123')
      marketplace.host
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
peddler-0.12.5 test/unit/peddler/test_marketplace.rb
peddler-0.12.4 test/unit/peddler/test_marketplace.rb
peddler-0.12.2 test/unit/peddler/test_marketplace.rb
peddler-0.12.1 test/unit/peddler/test_marketplace.rb
peddler-0.12.0 test/unit/peddler/test_marketplace.rb
peddler-0.11.1 test/unit/peddler/test_marketplace.rb
peddler-0.11.0 test/unit/peddler/test_marketplace.rb
peddler-0.10.0 test/unit/peddler/test_marketplace.rb