test/lib/vedeu/repository/interface_repository_test.rb in vedeu-0.0.19 vs test/lib/vedeu/repository/interface_repository_test.rb in vedeu-0.0.20

- old
+ new

@@ -1,19 +1,18 @@ require_relative '../../../test_helper' module Vedeu describe InterfaceRepository do let(:described_class) { InterfaceRepository } - let(:interface) { 'dummy' } - let(:value) { 'dummy' } before { Interface.create({ name: 'dummy' }) } - after { InterfaceRepository.reset } + after { InterfaceRepository.reset } describe '.activate' do - let(:subject) { described_class.activate(interface) } + let(:subject) { described_class.activate(interface) } + let(:interface) { 'dummy' } it 'returns an Array' do subject.must_be_instance_of(Array) end end @@ -34,9 +33,10 @@ end end describe '.find_by_name' do let(:subject) { described_class.find_by_name(value) } + let(:value) { 'dummy' } it 'returns an Interface' do subject.must_be_instance_of(Interface) end end