Sha256: b6431cf143097196605dc520e9e3e9e303f98e7fbe1255384a9c58a91ccf46fc

Contents?: true

Size: 891 Bytes

Versions: 12

Compression:

Stored size: 891 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Composition do

    let(:described)  { Vedeu::Composition }
    let(:instance)   { described.new(attributes) }
    let(:attributes) {
      {
        interfaces: interfaces,
        colour:     colour,
        style:      style,
      }
    }
    let(:interfaces) { [] }
    let(:colour)     {}
    let(:style)      {}

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

      it { subject.must_be_instance_of(described) }
    end

    describe '#initialize' do
      it { instance.must_be_instance_of(described) }
      it { instance.instance_variable_get('@interfaces').must_equal(interfaces) }
      it { instance.instance_variable_get('@colour').must_equal(colour) }
      it { instance.instance_variable_get('@style').must_equal(style) }
    end

  end # Composition

end # Vedeu

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.4.13 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.12 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.11 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.10 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.9 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.8 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.7 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.6 test/lib/vedeu/models/composition_test.rb
vedeu-0.4.5 test/lib/vedeu/models/view/composition_test.rb
vedeu-0.4.4 test/lib/vedeu/models/view/composition_test.rb
vedeu-0.4.3 test/lib/vedeu/models/view/composition_test.rb
vedeu-0.4.2 test/lib/vedeu/models/view/composition_test.rb