Sha256: a0de58006877c80ea141f19211b72ad989bfb57ca7c86aaaa091ed262ce1fd6b
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
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_be_instance_of(Vedeu::Colour) } it { instance.instance_variable_get('@style').must_be_instance_of(Vedeu::Style) } end describe '#inspect' do subject { instance.inspect } it { subject.must_equal('<Vedeu::Composition (interfaces:0)>') } end end # Composition end # Vedeu
Version data entries
4 entries across 4 versions & 1 rubygems