Sha256: 3df6bfd4e05dd83c4e1a95c6cdc8d499e33099db24ae3776b579e591421f4340

Contents?: true

Size: 927 Bytes

Versions: 3

Compression:

Stored size: 927 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Composition do

    let(:described) { Vedeu::Composition }
    let(:instance)  { described.new(interfaces) }

    let(:interfaces) { [] }
    let(:colour)     {}
    let(:style)      {}

    describe '.build' do
      subject {
        described.build({}) do
          # ...
        end
      }

      it { subject.must_be_instance_of(Composition) }
    end

    describe '#initialize' do
      subject { instance }

      it { subject.must_be_instance_of(described) }
      it { subject.instance_variable_get('@interfaces').must_equal(interfaces) }
      it { subject.instance_variable_get('@colour').must_equal(colour) }
      it { subject.instance_variable_get('@style').must_equal(style) }
    end

    describe '#inspect' do
      subject { instance.inspect }

      it { subject.must_equal('<Vedeu::Composition (interfaces:0)>') }
    end

  end # Composition

end # Vedeu

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.3.2 test/lib/vedeu/models/view/composition_test.rb
vedeu-0.3.1 test/lib/vedeu/models/view/composition_test.rb
vedeu-0.3.0 test/lib/vedeu/models/view/composition_test.rb