Sha256: 79c99a9c02d8940e56ed37a8b8f5de044b2fdce5725ff36124a7357eeeeff367

Contents?: true

Size: 623 Bytes

Versions: 13

Compression:

Stored size: 623 Bytes

Contents

require 'spec_helper'
require 'helpers/files'

require 'ore/versions/version_file'

describe Versions::VersionFile do
  include Helpers::Files

  subject { Versions::VersionFile }

  it "should load and parse the version string from a VERSION file" do
    v = subject.load(file('VERSION'))

    v.major.should == 1
    v.minor.should == 2
    v.patch.should == 3
    v.build.should be_nil
  end

  it "should load and parse the version numbers from a VERSION.yml file" do
    v = subject.load(file('VERSION.yml'))

    v.major.should == 1
    v.minor.should == 2
    v.patch.should == 3
    v.build.should be_nil
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
ore-core-0.1.5 spec/versions/version_file_spec.rb
ore-core-0.1.4 spec/versions/version_file_spec.rb
ore-core-0.1.3 spec/versions/version_file_spec.rb
ore-core-0.1.2 spec/versions/version_file_spec.rb
ore-core-0.1.1 spec/versions/version_file_spec.rb
ore-core-0.1.0 spec/versions/version_file_spec.rb
ore-0.2.3 spec/versions/version_file_spec.rb
ore-0.2.2 spec/versions/version_file_spec.rb
ore-0.2.1 spec/versions/version_file_spec.rb
ore-0.2.0 spec/versions/version_file_spec.rb
ore-0.1.4 spec/versions/version_file_spec.rb
ore-0.1.3 spec/versions/version_file_spec.rb
ore-0.1.2 spec/versions/version_file_spec.rb