summaryrefslogtreecommitdiff
path: root/spec/requests/api/notes_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-13 19:39:12 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-13 19:39:12 +0300
commit8ff171f62849d5e418847c1751a802f93604cc61 (patch)
tree8c29524224d2be62a232430e9cfb83d9b2767ce5 /spec/requests/api/notes_spec.rb
parente8f222e39c5f7124bd604246c8d2502181760888 (diff)
downloadgitlab-ce-8ff171f62849d5e418847c1751a802f93604cc61.tar.gz
Fix api specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/requests/api/notes_spec.rb')
-rw-r--r--spec/requests/api/notes_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/notes_spec.rb b/spec/requests/api/notes_spec.rb
index 11796183474..2875db04ee4 100644
--- a/spec/requests/api/notes_spec.rb
+++ b/spec/requests/api/notes_spec.rb
@@ -93,7 +93,7 @@ describe API::API, api: true do
post api("/projects/#{project.id}/issues/#{issue.id}/notes", user), body: 'hi!'
response.status.should == 201
json_response['body'].should == 'hi!'
- json_response['author']['email'].should == user.email
+ json_response['author']['username'].should == user.username
end
it "should return a 400 bad request error if body not given" do
@@ -112,7 +112,7 @@ describe API::API, api: true do
post api("/projects/#{project.id}/snippets/#{snippet.id}/notes", user), body: 'hi!'
response.status.should == 201
json_response['body'].should == 'hi!'
- json_response['author']['email'].should == user.email
+ json_response['author']['username'].should == user.username
end
it "should return a 400 bad request error if body not given" do