Sha256: 8bf592a3840efe4bfa3c0fb15bf6e8acf10391426fa8c53695ee75c0d60954c6
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require_relative '../../../test_helper' module Vedeu describe InterfaceRepository do let(:described_class) { InterfaceRepository } let(:interface) { 'dummy' } let(:value) { 'dummy' } before { Interface.create({ name: 'dummy' }) } 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 '.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.14 | test/lib/vedeu/repository/interface_repository_test.rb |