Skip to content

Instantly share code, notes, and snippets.

@sebyx07
Created June 20, 2014 15:40
Show Gist options
  • Save sebyx07/1b337c14ffd7c02efef1 to your computer and use it in GitHub Desktop.
Save sebyx07/1b337c14ffd7c02efef1 to your computer and use it in GitHub Desktop.
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