summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-11 13:55:46 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-11 13:55:46 +0300
commit5cab604ca0816d3e2e980eb3ba82e3b2b3786bdb (patch)
treebca806f8c3668985159c80219dbc0f33a6fda4bc
parent05dd7a00305aeda855164c1294f6b2c7d79e334a (diff)
parentddf004fa3685166297dfe6db63a7d4fe587b3f31 (diff)
downloadgitlab-shell-5cab604ca0816d3e2e980eb3ba82e3b2b3786bdb.tar.gz
Merge pull request #161 from Aigeruth/fix/gitlab_config_spec
Fix spec for GitlabConfig.gitlab_url.
-rw-r--r--spec/gitlab_config_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/gitlab_config_spec.rb b/spec/gitlab_config_spec.rb
index 2b5525c..aeeac56 100644
--- a/spec/gitlab_config_spec.rb
+++ b/spec/gitlab_config_spec.rb
@@ -21,10 +21,12 @@ describe GitlabConfig do
end
describe :gitlab_url do
+ let(:url) { 'http://test.com' }
subject { config.gitlab_url }
+ before { config.send(:config)['gitlab_url'] = url }
it { should_not be_empty }
- it { should eq('http://localhost:8080/') }
+ it { should eq(url) }
end
describe :audit_usernames do
@@ -62,4 +64,4 @@ describe GitlabConfig do
it { should_not include('-h') }
end
end
-end \ No newline at end of file
+end