Sha256: 5d266330498398fc7c21de7905d640446a6252bd6c189213fb975ca261ff72a7
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
require 'test_helper' class TestDependencyComparator < TestGemComparator def test_runtime_dependencies_comparison assert_equal 'DIFFERENT runtime dependencies:', @report['runtime_dependency'].header.data assert_equal 'DIFFERENT runtime dependencies:', @report['runtime_dependency'].lines(0) assert_equal '0.0.2->0.0.3:', @report['runtime_dependency']['0.0.2->0.0.3'].header.data assert_equal '0.0.2->0.0.3:', @report['runtime_dependency'].lines(1) assert_equal '* Added:', @report['runtime_dependency']['0.0.2->0.0.3']['added'].lines(0) assert_equal [], @report['runtime_dependency']['0.0.2->0.0.3']['deleted'].messages assert_equal [], @report['runtime_dependency']['0.0.2->0.0.3']['updated'].messages assert_equal ['rails [">= 4.0.0"] (runtime)'], @report['runtime_dependency']['0.0.2->0.0.3']['added'].lines(1) assert_equal '0.0.3->0.0.4:', @report['runtime_dependency']['0.0.3->0.0.4'].header.data assert_equal '0.0.3->0.0.4:', @report['runtime_dependency'].lines(4) assert_equal [], @report['runtime_dependency']['0.0.3->0.0.4']['added'].messages assert_equal [], @report['runtime_dependency']['0.0.3->0.0.4']['deleted'].messages assert_equal ['rails from: [">= 4.0.0"] to: [">= 4.1.0"]'], @report['runtime_dependency']['0.0.3->0.0.4']['updated'].lines(1) end def test_development_dependencies_comparison assert_equal [], @report['development_dependency']['0.0.1->0.0.2']['added'].messages assert_equal [], @report['development_dependency']['0.0.1->0.0.2']['deleted'].messages assert_equal [], @report['development_dependency']['0.0.1->0.0.2']['updated'].messages assert_equal [], @report['development_dependency']['0.0.2->0.0.3']['added'].messages assert_equal [], @report['development_dependency']['0.0.2->0.0.3']['deleted'].messages assert_equal [], @report['development_dependency']['0.0.2->0.0.3']['updated'].messages end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gem-compare-0.0.2 | test/rubygems/comparator/test_dependency_comparator.rb |