Commit 2dc0f098fdfe1d07e557f7da92b3cff9d7351276
1 parent
c6102063
Exists in
master
and in
4 other branches
fix typos in specs
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
spec/requests/api/projects_spec.rb
@@ -46,7 +46,7 @@ describe Gitlab::API do | @@ -46,7 +46,7 @@ describe Gitlab::API do | ||
46 | response.status.should == 201 | 46 | response.status.should == 201 |
47 | end | 47 | end |
48 | 48 | ||
49 | - it "should repsond with 404 on failure" do | 49 | + it "should respond with 404 on failure" do |
50 | post api("/projects", user) | 50 | post api("/projects", user) |
51 | response.status.should == 404 | 51 | response.status.should == 404 |
52 | end | 52 | end |
@@ -188,7 +188,7 @@ describe Gitlab::API do | @@ -188,7 +188,7 @@ describe Gitlab::API do | ||
188 | }.to change {project.hooks.count}.by(1) | 188 | }.to change {project.hooks.count}.by(1) |
189 | end | 189 | end |
190 | end | 190 | end |
191 | - | 191 | + |
192 | describe "PUT /projects/:id/hooks/:hook_id" do | 192 | describe "PUT /projects/:id/hooks/:hook_id" do |
193 | it "should update an existing project hook" do | 193 | it "should update an existing project hook" do |
194 | put api("/projects/#{project.code}/hooks/#{hook.id}", user), | 194 | put api("/projects/#{project.code}/hooks/#{hook.id}", user), |
@@ -197,7 +197,7 @@ describe Gitlab::API do | @@ -197,7 +197,7 @@ describe Gitlab::API do | ||
197 | json_response['url'].should == 'http://example.com' | 197 | json_response['url'].should == 'http://example.com' |
198 | end | 198 | end |
199 | end | 199 | end |
200 | - | 200 | + |
201 | 201 | ||
202 | describe "DELETE /projects/:id/hooks" do | 202 | describe "DELETE /projects/:id/hooks" do |
203 | it "should delete hook from project" do | 203 | it "should delete hook from project" do |
@@ -239,7 +239,7 @@ describe Gitlab::API do | @@ -239,7 +239,7 @@ describe Gitlab::API do | ||
239 | end | 239 | end |
240 | 240 | ||
241 | describe "GET /projects/:id/snippets" do | 241 | describe "GET /projects/:id/snippets" do |
242 | - it "should return a project snippet" do | 242 | + it "should return an array of project snippets" do |
243 | get api("/projects/#{project.code}/snippets", user) | 243 | get api("/projects/#{project.code}/snippets", user) |
244 | response.status.should == 200 | 244 | response.status.should == 200 |
245 | json_response.should be_an Array | 245 | json_response.should be_an Array |