Sha256: 46992a89f32f5416b918e8ea6666963d9054f6727f2e41e4899f299ac3f38d7a

Contents?: true

Size: 828 Bytes

Versions: 31

Compression:

Stored size: 828 Bytes

Contents

require 'autoproj/test'
require 'autoproj/ops/configuration'

describe Autoproj::Ops::Configuration do
    describe "#sort_package_sets_by_import_order" do
        attr_reader :ops

        before do
            @ops = Autoproj::Ops::Configuration.new(nil, nil)
        end

        it "should handle standalone package sets that are both explicit and dependencies of other package sets gracefully (issue#30)" do
            pkg_set0 = flexmock('set0', imports: [], explicit?: true)
            pkg_set1 = flexmock('set1', imports: [pkg_set0], explicit?: true)
            root_pkg_set = flexmock('root', imports: [pkg_set0, pkg_set1], explicit?: true)
            assert_equal [pkg_set0, pkg_set1, root_pkg_set],
                ops.sort_package_sets_by_import_order([pkg_set1, pkg_set0], root_pkg_set)
        end
    end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
autoproj-1.13.7 test/ops/test_configuration.rb
autoproj-1.13.6 test/ops/test_configuration.rb
autoproj-1.13.5 test/ops/test_configuration.rb
autoproj-1.13.5.rc1 test/ops/test_configuration.rb
autoproj-1.13.4 test/ops/test_configuration.rb
autoproj-1.13.3 test/ops/test_configuration.rb
autoproj-1.13.3.b2 test/ops/test_configuration.rb
autoproj-1.13.3.b1 test/ops/test_configuration.rb
autoproj-1.13.2.b4 test/ops/test_configuration.rb
autoproj-1.13.2.b3 test/ops/test_configuration.rb
autoproj-1.13.2.b2 test/ops/test_configuration.rb
autoproj-1.13.2.b1 test/ops/test_configuration.rb
autoproj-2.0.0.b7 test/ops/test_configuration.rb
autoproj-2.0.0.b6 test/ops/test_configuration.rb
autoproj-2.0.0.b5 test/ops/test_configuration.rb
autoproj-2.0.0.b4 test/ops/test_configuration.rb
autoproj-2.0.0.b3 test/ops/test_configuration.rb
autoproj-2.0.0.b2 test/ops/test_configuration.rb
autoproj-2.0.0.b1 test/ops/test_configuration.rb
autoproj-1.13.2 test/ops/test_configuration.rb