Skip to content

Commit 9b0d513

Browse files
committed
Add Create Achievement Spec to the docs.
1 parent d4bd510 commit 9b0d513

File tree

1 file changed

+54
-5
lines changed

1 file changed

+54
-5
lines changed

README.md

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Simple Red Green Refactor example with Minitest.
5050

5151
See the [string_calculator.rb](string_calculator.rb) file.
5252

53-
##### Running
53+
###### Running
5454

55-
To run on the root of the project enter:
55+
To run, on the root of the project enter:
5656

5757
ruby string_calculator.rb
5858

@@ -68,11 +68,60 @@ To run all the specs on the root of the project enter `rspec`.
6868

6969
Simple example with RSpec.
7070

71-
See the [playground_spec.rb](spec/playground_spec.rb) and [lib/playground.rb](lib/playground.rb) files.
71+
72+
See the following files for a better understanding:
73+
74+
* `playground_spec.rb`=> [playground_spec.rb](spec/playground_spec.rb)
75+
* `playground.rb` => [lib/playground.rb](lib/playground.rb)
7276

7377

74-
##### Running
78+
###### Running
7579

76-
To run on the root of the project enter:
80+
To run this spec, on the root of the project enter:
7781

7882
rspec spec/playground_spec.rb
83+
84+
85+
#### Bowling Game - Advanced RSpec example
86+
87+
More complex example with RSpec based on a bowling game.
88+
89+
90+
See the following files for a better understanding:
91+
92+
* `bowling_game_spec.rb`=> [bowling_game_spec.rb](spec/bowling_game_spec.rb)
93+
* `bowling_game.rb` => [lib/bowling_game.rb](lib/bowling_game.rb)
94+
95+
96+
###### Running
97+
98+
To run this spec, on the root of the project enter:
99+
100+
rspec spec/bowling_game_spec.rb
101+
102+
103+
#### Create Achievement spec
104+
105+
Spec testing the achievement creation
106+
107+
See the following files for a better understanding:
108+
109+
###### Main files:
110+
111+
* `create_achievement_spec.rb`=> [spec/create_achievement_spec.rb](spec/create_achievement_spec.rb)
112+
113+
###### Support files:
114+
* `login_form.rb` => [spec/support/login_form.rb](spec/support/login_form.rb)
115+
* `new_achievement_form.rb` => [spec/support/new_achievement_form.rb](spec/support/new_achievement_form.rb)
116+
117+
###### Factory files:
118+
* `achievements.rb` => [spec/factories/achievements.rb](spec/factories/achievements.rb)
119+
* `users.rb` => [spec/factories/users.rb](spec/factories/users.rb)
120+
121+
###### Running
122+
123+
To run this spec, on the root of the project enter:
124+
125+
rspec spec/create_achievement_spec.rb
126+
127+
> This spec is failing, the fail is related with the Third API testing with Twitter.

0 commit comments

Comments
 (0)