Sha256: 5c0e1deda0633a92e443cdc91321283d133f626fc348bfb8ca26416f1016bb26

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

require 'autoproj/test'

module Autoproj
    module Ops
        describe Snapshot do
            attr_reader :manifest
            before do
                @manifest = create_bootstrap
            end

            describe ".update_log_available?" do
                it "returns false if the main configuration is not managed by git" do
                    assert !Snapshot.update_log_available?(manifest)
                end
                it "returns true if the main configuration is managed by git even if it is not declared" do
                    system("git", "init", chdir: Autoproj.config_dir, STDOUT => :close)
                    assert Snapshot.update_log_available?(manifest)
                end
                it "returns true if the main configuration is managed by git and it is declared" do
                    manifest.main_package_set.vcs = VCSDefinition.from_raw('type' => 'git', 'url' => Autoproj.config_dir)
                    assert Snapshot.update_log_available?(manifest)
                end
            end
        end
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
autoproj-2.0.0.b7 test/ops/test_snapshot.rb
autoproj-2.0.0.b6 test/ops/test_snapshot.rb
autoproj-2.0.0.b5 test/ops/test_snapshot.rb
autoproj-2.0.0.b4 test/ops/test_snapshot.rb
autoproj-2.0.0.b3 test/ops/test_snapshot.rb
autoproj-2.0.0.b2 test/ops/test_snapshot.rb
autoproj-2.0.0.b1 test/ops/test_snapshot.rb