diff options
author | James Lopez <james@jameslopez.es> | 2016-02-26 10:40:30 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-02-26 10:40:30 +0100 |
commit | c401e8338b5cf4bf3593a2b6f7209c40d1b46c5b (patch) | |
tree | 455931fe1baf6715d0fbfd4d9dd9eed420a1b823 /spec | |
parent | 5c271ee95fe94656a2ea14b58d6e9fa664548edd (diff) | |
download | gitlab-ce-c401e8338b5cf4bf3593a2b6f7209c40d1b46c5b.tar.gz |
updated internal.rb and spec based on MR feedback
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/internal_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/requests/api/internal_spec.rb b/spec/requests/api/internal_spec.rb index d47474d761c..1398dcc1918 100644 --- a/spec/requests/api/internal_spec.rb +++ b/spec/requests/api/internal_spec.rb @@ -6,6 +6,8 @@ describe API::API, api: true do let(:key) { create(:key, user: user) } let(:project) { create(:project) } let(:secret_token) { File.read Gitlab.config.gitlab_shell.secret_file } + # Project with path ending in .wiki + let(:project_wiki) { create(:project, name: 'my.wiki', path: 'my.wiki') } describe "GET /internal/check", no_db: true do it do @@ -55,9 +57,13 @@ describe API::API, api: true do end context "git push with project.wiki" do - let(:project) { create(:project, name: 'my.wiki', path: 'my.wiki') } + + before do + project_wiki.team << [user, :developer] + end + it do - push(key, project) + push(key, project_wiki) expect(response.status).to eq(200) expect(json_response["status"]).to be_truthy |