@@ -115,7 +115,7 @@ To run this spec, on the root of the project enter:
115115
116116#### Create Achievement spec
117117
118- Spec testing the achievement creation
118+ Spec testing the achievement creation, authentication and authorization.
119119
120120See the following files for a better understanding:
121121
@@ -140,6 +140,37 @@ To run this spec, on the root of the project enter:
140140> This spec is failing, the fail is related with the Third API testing with Twitter.
141141
142142
143+
144+ #### Achievements Controller spec
145+
146+ Spec testing the Achievement controller, more specifically your CRUD operations like show, create, update, edit and destroy
147+ methods in addition to authentication and authorization.
148+
149+ See the following files for a better understanding:
150+
151+ ###### Spec file:
152+
153+ * ` achievements_controller_spec.rb ` => [ spec/controllers/achievements_controller_spec.rb] ( spec/controllers/achievements_controller_spec.rb )
154+
155+ ###### Controller
156+
157+ * ` achievements_controller.rb ` => [ app/controllers/achievements_controller.rb] ( app/controllers/achievements_controller.rb )
158+
159+ ###### Support files:
160+ * ` login_form.rb ` => [ spec/support/login_form.rb] ( spec/support/login_form.rb )
161+ * ` new_achievement_form.rb ` => [ spec/support/new_achievement_form.rb] ( spec/support/new_achievement_form.rb )
162+
163+ ###### Factory files:
164+ * ` achievements.rb ` => [ spec/factories/achievements.rb] ( spec/factories/achievements.rb )
165+ * ` users.rb ` => [ spec/factories/users.rb] ( spec/factories/users.rb )
166+
167+ ##### Running
168+
169+ To run this spec, on the root of the project enter:
170+
171+ rspec spec/controllers/encouragements_controller_spec.rb
172+
173+
143174### Cucumber examples
144175
145176#### Reading other achievements feature
0 commit comments