mirror of
https://github.com/discourse/discourse.git
synced 2025-06-13 18:04:35 +08:00
lets not fail in order random
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user