Sha256: b52ad8d01afd93e635fce67fe5dfa7b143507819986351716b9bf43edd40999f
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require "minitest/autorun" require "latest" class TestGem < MiniTest::Unit::TestCase def test_should_fetch_on_initialize gem = ::Latest::Gem.new("rake") assert_equal Array, gem.versions.class assert_equal "rake", gem.name end def test_raise_error_when_gem_is_not_found assert_raises Latest::GemNotFoundError do ::Latest::Gem.new("some-gem-that-probably-wont-exist-2") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
latest-0.2.0 | test/test_gem.rb |