Sha256: 7bdde410e84632e06c552d4362f9912ddd0097b6285cfced5aab19d96f07e63e

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 Bytes

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").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

1 entries across 1 versions & 1 rubygems

Version Path
uber-0.0.5 test/version_test.rb