Sha256: 19bc28384a308482a0fe2127e9c186d848c87d01dea9e07d94287325b784f177

Contents?: true

Size: 633 Bytes

Versions: 12

Compression:

Stored size: 633 Bytes

Contents

#--
# Copyright (c) 2010-2012 Engine Yard, Inc.
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
# This source code is available under the MIT license.
# See the file LICENSE.txt for details.
#++

require File.expand_path('../../spec_helper', __FILE__)

describe Warbler::Traits do
  it "are ordered by fewer dependencies first" do
    traits = [Warbler::Traits::War, Warbler::Traits::Bundler, Warbler::Traits::Rails]
    result = traits.shuffle.sort
    result.index(Warbler::Traits::War).should < result.index(Warbler::Traits::Bundler)
    result.index(Warbler::Traits::War).should < result.index(Warbler::Traits::Rails)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
warbler-1.4.4 spec/warbler/traits_spec.rb
warbler-1.4.3 spec/warbler/traits_spec.rb
warbler-1.4.2 spec/warbler/traits_spec.rb
warbler-1.4.1 spec/warbler/traits_spec.rb
warbler-1.4.0 spec/warbler/traits_spec.rb
warbler-1.4.0.beta2 spec/warbler/traits_spec.rb
warbler-1.4.0.beta1 spec/warbler/traits_spec.rb
warbler-1.3.8 spec/warbler/traits_spec.rb
warbler-1.3.7 spec/warbler/traits_spec.rb
warbler-1.3.6 spec/warbler/traits_spec.rb
warbler-1.3.5 spec/warbler/traits_spec.rb
warbler-1.3.4 spec/warbler/traits_spec.rb