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