summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorCarlos Paramio <hola@carlosparamio.com>2014-01-24 08:42:24 +0100
committerCarlos Paramio <hola@carlosparamio.com>2014-01-24 08:42:24 +0100
commitb373158077d7033019172e5105717542d46e326a (patch)
treeddcd19708ddffc3fd12f54bae73797030facb9ab /spec
parent6d3a92f22536ef01e8d770b11ba04ffe448b5679 (diff)
downloadgitlab-ce-b373158077d7033019172e5105717542d46e326a.tar.gz
Project name was hardcoded (oops)
Diffstat (limited to 'spec')
-rw-r--r--spec/models/assembla_service_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/models/assembla_service_spec.rb b/spec/models/assembla_service_spec.rb
index ded6d87c33e..395aa4a4444 100644
--- a/spec/models/assembla_service_spec.rb
+++ b/spec/models/assembla_service_spec.rb
@@ -33,14 +33,15 @@ describe AssemblaService do
project_id: project.id,
project: project,
service_hook: true,
- token: 'verySecret'
+ token: 'verySecret',
+ subdomain: 'project_name'
)
@sample_data = GitPushService.new.sample_data(project, user)
- @api_url = 'https://atlas.assembla.com/spaces/ouposp/github_tool?secret_key=verySecret'
+ @api_url = 'https://atlas.assembla.com/spaces/project_name/github_tool?secret_key=verySecret'
WebMock.stub_request(:post, @api_url)
end
- it "should call FlowDock API" do
+ it "should call Assembla API" do
@assembla_service.execute(@sample_data)
WebMock.should have_requested(:post, @api_url).with(
body: /#{@sample_data[:before]}.*#{@sample_data[:after]}.*#{project.path}/