-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
170 lines (138 loc) · 8.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
CosaNostra Rspec Exercise
Description:
We have been commissioned by the CosaNostra to write a Rails application to help them manage their "waste". As you might guess the bosses of these families do not take kindly to software which doesn't work properly so you better make sure to test everything else you might be swimming with the fishes.
Luckily for you all someone else already wrote the code.. its just your job to make sure it works. Oh and the bosses are coming by for a demo in an hour.. Good Luck!
General Description of the Application:
Basically the bosses want to be able to log into the system, issue hits on other people and then have the mobsters login and pick up those hits. Mobsters can accept hits, complete hits, and fail hits. The full stories are at the bottom.
Things to know:
Make sure to change your database.yml file
Run your normal rake commands and then to get some sample data in the database run
rake db:populate
The sample data is being loaded from a file called populate.rb
Git Info:
http://jonas.nitro.dk/git/quick-reference.html
Haml:
http://haml.hamptoncatlin.com/docs/
Rspec:
http://rspec.info/documentation/
Mocha:
http://mocha.rubyforge.org/
Stories:
As a user who logs in I would like to be able to see a list of families that I can view with details about the family.
Acceptance Criteria:
On login there should be a list of families
Each family name should link to the family detail page.
Each family row should have a count of the number of family members Alive
Each family row should have a count of the number of family members Deceased
As a boss on the Families List Page, I need to be able to view a Family in detail, so that I can have more information about them and take actions relating to the family.
*AC:*
- Boss can navigate to the family detail page from the families list.
- Members of the family are listed with the following sort rules:
_ 1) Boss (Alive)
2) Most recently killed boss ... Least recently killed boss
3) Wise guys (Alive)
4) Wise guys (Dead)_
- Members show their full name, role, and status in the list
- If looking at family detail for other family an "Issue Hit" button should be present next to all alive family members
- If the person is dead it should show who killed them so killed by Salvator Gambini
- If boss is viewing his own family then he should not see any hits issued on his family members he can only see hits he/or old boss has issued on other families members
As a Wise Guy on the Families List Page, I need to be able to view a Family in detail, so that I can have more information about them and take actions relating to the family.
AC:
- Wise Guy can navigate to the family detail page from the families list.
- Members of the family are listed with the following sort rules:
1) Boss (Alive)
2) Most recently killed boss ... Least recently killed boss
3) Wise guys (Alive)
4) Wise guys (Dead)
- Members show their full name, role, and status in the list
- If the person is dead it should show who killed them so killed by Salvator Gambini
- If I am looking at a family other than my own there should be an "Accept Hit" button next to any individual who my boss has issued a hit on and is not currently being worked on.
- I should not see any hits issued on my family members only hits issued against another family
As a boss on the Family Detail Page, I need to be able to issue a hit on any family member, so that I can have them killed.
*AC:*
- Issue Hit button appears next to the family member's name if they are alive and no hit has already been issued.
- Upon issuing a hit on a family member, that member's status changes to "Hit Issued"
- Boss selects deadline for the hit
- Boss selects Method of Death to the person being hit from the following list:
_
1) Shooting
2) Stabbing
3) Drowning
4) Poisoned
5) Beat Down
_
As a Wise Guy on the Family Detail Page, I need to be able to complete a hit so that the boss can know the person was killed.
*AC:*
- Wise guys marks hit as complete
- Persons status is changed to deaceased
As a Wise Guy on the Family Details Page, I want to be able to accept a hit so that I can kill that person for the boss.
*AC:*
- Accept Hit button appears next to the family member's name if they are alive and a hit has been issued on them.
- Upon accepting the hit on a family member, that hit belongs to the wise guy
- A wise guy can have multiple accepted hits at a time
- Complete Hit and Failed Hit buttons appear next to the family member's name for the Wise guy who accepted (only)
- Hit in progress text appears next to the family member's name for all other users.
As a Wise Guy on the Family Detail Page, I need to be able to mark a hit as failed so that the boss can know the person was not killed and take action from there.
AC:
- Wise guys marks hit as failed
- Persons status is changed to hit issued.
- other wise guys can "accept" the hit now.
As a user who logs in I would like to be able to see a list of families that I can view with details about the family.
Acceptance Criteria:
On login there should be a list of families
Each family name should link to the family detail page.
Each family row should have a count of the number of family members Alive
Each family row should have a count of the number of family members Deceased
As a boss on the Families List Page, I need to be able to view a Family in detail, so that I can have more information about them and take actions relating to the family.
*AC:*
- Boss can navigate to the family detail page from the families list.
- Members of the family are listed with the following sort rules:
_ 1) Boss (Alive)
2) Most recently killed boss ... Least recently killed boss
3) Wise guys (Alive)
4) Wise guys (Dead)_
- Members show their full name, role, and status in the list
- If looking at family detail for other family an "Issue Hit" button should be present next to all alive family members
- If the person is dead it should show who killed them so killed by Salvator Gambini
- If boss is viewing his own family then he should not see any hits issued on his family members he can only see hits he/or old boss has issued on other families members
As a Wise Guy on the Families List Page, I need to be able to view a Family in detail, so that I can have more information about them and take actions relating to the family.
AC:
- Wise Guy can navigate to the family detail page from the families list.
- Members of the family are listed with the following sort rules:
1) Boss (Alive)
2) Most recently killed boss ... Least recently killed boss
3) Wise guys (Alive)
4) Wise guys (Dead)
- Members show their full name, role, and status in the list
- If the person is dead it should show who killed them so killed by Salvator Gambini
- If I am looking at a family other than my own there should be an "Accept Hit" button next to any individual who my boss has issued a hit on and is not currently being worked on.
- I should not see any hits issued on my family members only hits issued against another family
As a boss on the Family Detail Page, I need to be able to issue a hit on any family member, so that I can have them killed.
*AC:*
- Issue Hit button appears next to the family member's name if they are alive and no hit has already been issued.
- Upon issuing a hit on a family member, that member's status changes to "Hit Issued"
- Boss selects deadline for the hit
- Boss selects Method of Death to the person being hit from the following list:
_
1) Shooting
2) Stabbing
3) Drowning
4) Poisoned
5) Beat Down
_
As a Wise Guy on the Family Detail Page, I need to be able to complete a hit so that the boss can know the person was killed.
*AC:*
- Wise guys marks hit as complete
- Persons status is changed to deaceased
As a Wise Guy on the Family Details Page, I want to be able to accept a hit so that I can kill that person for the boss.
*AC:*
- Accept Hit button appears next to the family member's name if they are alive and a hit has been issued on them.
- Upon accepting the hit on a family member, that hit belongs to the wise guy
- A wise guy can have multiple accepted hits at a time
- Complete Hit and Failed Hit buttons appear next to the family member's name for the Wise guy who accepted (only)
- Hit in progress text appears next to the family member's name for all other users.
As a Wise Guy on the Family Detail Page, I need to be able to mark a hit as failed so that the boss can know the person was not killed and take action from there.
AC:
- Wise guys marks hit as failed
- Persons status is changed to hit issued.
- other wise guys can "accept" the hit now.