test/lib/vedeu/repository/interface_test.rb in vedeu-0.0.19 vs test/lib/vedeu/repository/interface_test.rb in vedeu-0.0.20
- old
+ new
@@ -6,22 +6,23 @@
let(:described_instance) { described_class.new(attributes) }
let(:subject) { described_instance }
let(:attributes) {
{
name: 'dummy',
- width: 40,
+ width: 10,
height: 5,
x: 1,
y: 1,
fg: :red,
bg: :blue,
cursor: true,
}
}
let(:result) {}
- after { InterfaceRepository.reset }
+ before { Interface.create(attributes) }
+ after { InterfaceRepository.reset }
it 'returns an Interface instance' do
subject.must_be_instance_of(Interface)
end
@@ -46,12 +47,12 @@
end
describe '#update' do
let(:subject) { described_instance.update }
- it 'returns a Array' do
- subject.must_be_instance_of(Array)
- end
+ # it 'returns a Array' do
+ # subject.must_be_instance_of(Array)
+ # end
end
describe '#geometry' do
let(:subject) { described_instance.geometry }