Sha256: 38a6aa6a858b274431b130535ad06855b1dcc9dbcd3de57bf46dfe83740787dc

Contents?: true

Size: 1 KB

Versions: 10

Compression:

Stored size: 1 KB

Contents

require 'test_helper'


class VersionTest < MiniTest::Spec
    subject { Uber::Version.new("1.2.3") } # Rails version

    it { subject.~("1.0").must_equal false }
    it { subject.~("1.1").must_equal false }
    it { subject.~("1.2").must_equal true }
    it { subject.~("1.3").must_equal false }
    it { subject.~("2.2").must_equal false }
    it { subject.~("1.0", "1.1").must_equal false }
    it { subject.~("1.0", "1.1", "1.2").must_equal true }
    it { subject.~("1.2", "1.3").must_equal true }

    it { (subject >= "1.2.4").must_equal false }
    it { (subject >= "1.2.2").must_equal true }
    it { (subject >= "0.3.1").must_equal true }
    it { (subject >= "0.3.6").must_equal true }
    it { (subject >= "0.3").must_equal true }
    it { (subject >= "0.2.4").must_equal true }
    it { (subject >= "0.2").must_equal true }
    it { (subject >= "1.2").must_equal true }
    it { (subject >= "1.1").must_equal true }
    it { (subject >= "1.3").must_equal false }
    it { (subject >= "2.1").must_equal false }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
uber-0.0.15 test/version_test.rb
uber-0.0.14 test/version_test.rb
uber-0.0.13 test/version_test.rb
uber-0.0.12 test/version_test.rb
uber-0.0.11 test/version_test.rb
uber-0.0.10 test/version_test.rb
uber-0.0.9 test/version_test.rb
uber-0.0.8 test/version_test.rb
uber-0.0.7 test/version_test.rb
uber-0.0.6 test/version_test.rb