summaryrefslogtreecommitdiff
path: root/spec/requests/api/variables_spec.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-13 19:57:23 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-13 19:57:23 +0100
commit3b7f34281e4d1c4ca626578ddc9a1b9eda7e7538 (patch)
tree1cef992e85e7b59f49545021d0b594380924931f /spec/requests/api/variables_spec.rb
parentd338087605791e408e696b11974995be9ebff80e (diff)
downloadgitlab-ce-3b7f34281e4d1c4ca626578ddc9a1b9eda7e7538.tar.gz
Modify :ci_variable factory
Diffstat (limited to 'spec/requests/api/variables_spec.rb')
-rw-r--r--spec/requests/api/variables_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/variables_spec.rb b/spec/requests/api/variables_spec.rb
index 214d7d5a0cc..9744729ba0c 100644
--- a/spec/requests/api/variables_spec.rb
+++ b/spec/requests/api/variables_spec.rb
@@ -46,7 +46,7 @@ describe API::API, api: true do
expect(json_response['value']).to eq(variable.value)
end
- it 'should responde with 404 Not Found if requesting non-existing variable' do
+ it 'should respond with 404 Not Found if requesting non-existing variable' do
get api("/projects/#{project.id}/variables/non_existing_variable", user)
expect(response.status).to eq(404)
@@ -84,7 +84,7 @@ describe API::API, api: true do
it 'should not allow to duplicate variable key' do
expect do
- post api("/projects/#{project.id}/variables", user), key: 'TEST_VARIABLE_1', value: 'VALUE_2'
+ post api("/projects/#{project.id}/variables", user), key: variable.key, value: 'VALUE_2'
end.to change{project.variables.count}.by(0)
expect(response.status).to eq(400)