Created
June 20, 2014 15:40
-
-
Save sebyx07/1b337c14ffd7c02efef1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe D2M_Queue do | |
after(:each) do | |
queue.clear | |
end | |
describe '#remove_by_steam_id' do | |
it 'should remove player by steam id' do | |
queue.push(player_1) | |
queue.remove_by_steam_id(player_1.steam_id) | |
expect(queue).to be_empty | |
end | |
end | |
describe '#find_by_role' do | |
# i want to put it here | |
# players.each { |pl| queue.push(pl) } | |
context 'carries' do | |
it 'should return two' do | |
expect(queue.find_by_role(0).size).to eq(2) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment