Sha256: 6706ffa15ed0535e30f8e8ee7640bf013ef8204edd032b470425104c736640ba

Contents?: true

Size: 638 Bytes

Versions: 20

Compression:

Stored size: 638 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Interfaces do

    let(:described) { Vedeu::Interfaces }

    it { described.must_respond_to(:interfaces) }

    describe '#zindexed' do
      before do
        @hydrogen = Vedeu.interface 'hydrogen' do
          zindex 2
        end
        @helium = Vedeu.interface 'helium' do
          zindex 3
        end
        @lithium = Vedeu.interface 'lithium' do
          zindex 1
        end
      end
      after { Vedeu.interfaces.reset }

      subject { Vedeu.interfaces.zindexed }

      it { subject.must_equal([@lithium, @hydrogen, @helium]) }
    end

  end # Interfaces

end # Vedeu

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
vedeu-0.5.0 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.65 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.64 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.63 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.62 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.61 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.60 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.59 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.58 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.57 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.56 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.55 test/lib/vedeu/models/interfaces_test.rb
vedeu-0.4.54 test/lib/vedeu/repositories/repositories/interfaces_test.rb
vedeu-0.4.53 test/lib/vedeu/repositories/repositories/interfaces_test.rb
vedeu-0.4.52 test/lib/vedeu/repositories/repositories/interfaces_test.rb
vedeu-0.4.51 test/lib/vedeu/repositories/repositories/interfaces_test.rb
vedeu-0.4.50 test/lib/vedeu/repositories/repositories/interfaces_test.rb
vedeu-0.4.49 test/lib/vedeu/repositories/repositories/interfaces_test.rb
vedeu-0.4.48 test/lib/vedeu/repositories/repositories/interfaces_test.rb
vedeu-0.4.47 test/lib/vedeu/repositories/repositories/interfaces_test.rb