Created
September 24, 2008 17:28
-
-
Save CobyR/12615 to your computer and use it in GitHub Desktop.
Software Development Manager Unit Test
This file contains 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
require 'test_helper' | |
class DevelopmentManagerTest < Test::Unit::TestCase | |
fixtures :development_managers | |
fixtures :teams | |
def setup | |
@candidate = development_managers(:ideal) | |
@team = teams(:web_tier) | |
end | |
def test_technical_skills | |
assert @candidate.skills["ruby"] >= 9 | |
assert @candidate.skills["sql"] >= 8 | |
assert @candidate.skills["rails"] >= 7 | |
assert @candidate.skills["javascript"] >= 8 | |
assert @candidate.skills["subversion"] >= 8 | |
assert @candidate.years_experience["rails"] > 1 | |
assert @candidate.eliminates_technical_debt | |
assert @candidate.designs_software_solutions | |
assert @candidate.practices_tdd | |
end | |
def test_mentor_skills | |
assert @candidate.mentors_others | |
assert @candidate.pair_program | |
assert @candidate.leads_by_example | |
end | |
def test_human_behavior | |
assert @team.respects(@candidate) | |
assert @candidate.clue? | |
assert @candidate.integrates_with_team(@team) | |
assert @candidate.is_passionate_about_technology | |
assert @candidate.has_positive_attitude | |
assert @candidate.can_collaborate_with(@team) | |
assert @candidate.communicates_clearly_and_openly | |
end | |
def test_methodology_skills | |
assert @candidate.knows_agile_practices | |
assert @candidate.increases_team_velocity | |
assert @candidate.improves_practices | |
assert @candidate.improves_processes | |
end | |
def test_bonuses | |
assert @candidate.skills["shoulda"] | |
assert @candidate.skills["git"] | |
assert @candidate.skills["web analytics"] | |
assert @candidate.involved_in_open_source | |
assert @candidate.is_really_smart | |
end | |
def test_management_abilities | |
assert @candidate.can_lead(@team) | |
assert @candidate.can_grow(@team) | |
assert @candidate.can_manage_and_assign_tasks | |
assert @candidate.can_get_things_done | |
assert @candidate.can_meet_deadlines | |
assert @candidate.can_manage_expectations | |
assert @candidate.time_spent_coding > 0.5 | |
assert @candidate.works_closely_with(teams(:architecture)) | |
assert @candidate.works_closely_with(teams(:quality_assurance)) | |
assert @candidate.works_closely_with(teams(:consumer_products)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment