test/lib/vedeu/repository/interface_repository_test.rb in vedeu-0.0.32 vs test/lib/vedeu/repository/interface_repository_test.rb in vedeu-0.0.33
- old
+ new
@@ -4,23 +4,23 @@
module Vedeu
describe InterfaceRepository do
describe '.create' do
it 'returns an Interface' do
InterfaceRepository.create({
- name: 'dummy',
- width: 15,
- height: 2
+ name: 'dummy',
+ width: 5,
+ height: 5
}).must_be_instance_of(Interface)
end
end
describe '.find' do
it 'returns an Interface when the interface exists' do
InterfaceRepository.create({
- name: 'dummy',
- width: 15,
- height: 2
+ name: 'dummy',
+ width: 5,
+ height: 5
})
InterfaceRepository.find('dummy')
.must_be_instance_of(Interface)
end
@@ -55,16 +55,16 @@
end
it 'returns the collection in order they should be drawn' do
InterfaceRepository.reset
InterfaceRepository.create({
- name: 'a', width: 15, height: 2, z: 2
+ name: 'a', width: 5, height: 5, z: 2
}).enqueue("a")
InterfaceRepository.create({
- name: 'b', width: 15, height: 2, z: 1
+ name: 'b', width: 5, height: 5, z: 1
}).enqueue("b")
InterfaceRepository.create({
- name: 'c', width: 15, height: 2, z: 3
+ name: 'c', width: 5, height: 5, z: 3
}).enqueue("c")
InterfaceRepository.refresh.must_equal(['b', 'a', 'c'])
end
end