Sha256: 143da84490eaa527e4518bc1d52fb73c568e50d787d0c695eee0717c93306b46
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
require_relative '../../../test_helper' module Vedeu describe InterfaceRepository do let(:described_class) { InterfaceRepository } let(:interface) { :dummy } let(:value) { "dummy" } before do Interface.create({ name: "dummy" }) Terminal.stubs(:input) Input.stubs(:evaluate) Compositor.stubs(:arrange) end describe '.activate' do let(:subject) { described_class.activate(interface) } it { subject.must_be_instance_of(Array) } end describe '.deactivate' do let(:subject) { described_class.deactivate } it { subject.must_be_instance_of(Array) } end describe '.activated' do let(:subject) { described_class.activated } it { subject.must_be_instance_of(Interface) } end describe '.find_by_name' do let(:subject) { described_class.find_by_name(value) } it { subject.must_be_instance_of(Interface) } end describe '.initial_state' do let(:subject) { described_class.initial_state } it { subject.must_be_instance_of(Array) } end describe '.input' do let(:subject) { described_class.input } it { subject.must_be_instance_of(Array) } end describe '.output' do let(:subject) { described_class.output } it { subject.must_be_instance_of(Array) } end describe '.update' do let(:subject) { described_class.update } it { skip } end describe '.klass' do let(:subject) { described_class.klass } it { subject.must_equal(Interface) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.11 | test/lib/vedeu/repository/interface_repository_test.rb |