lets not fail in order random
This commit is contained in:
parent
456cff17f8
commit
251aca3b00
|
@ -32,16 +32,10 @@ describe Archetype do
|
||||||
|
|
||||||
context 'register an archetype' do
|
context 'register an archetype' do
|
||||||
|
|
||||||
before do
|
it 'has one more element' do
|
||||||
@list = Archetype.list.dup
|
@list = Archetype.list.dup
|
||||||
Archetype.register('glados')
|
Archetype.register('glados')
|
||||||
end
|
|
||||||
|
|
||||||
it 'has one more element' do
|
|
||||||
Archetype.list.size.should == @list.size + 1
|
Archetype.list.size.should == @list.size + 1
|
||||||
end
|
|
||||||
|
|
||||||
it 'has a glados element' do
|
|
||||||
Archetype.list.find {|a| a.id == 'glados'}.should be_present
|
Archetype.list.find {|a| a.id == 'glados'}.should be_present
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue