Epic: Gitlab configuration with default values
This commit is contained in:
parent
b3a0ee8e63
commit
9b337b8328
25 changed files with 147 additions and 45 deletions
|
@ -5,7 +5,7 @@ describe Notify do
|
|||
include EmailSpec::Matchers
|
||||
|
||||
before :all do
|
||||
default_url_options[:host] = EMAIL_OPTS['host']
|
||||
default_url_options[:host] = Gitlab.config.web_host
|
||||
end
|
||||
|
||||
let(:recipient) { Factory.create(:user, :email => 'recipient@example.com') }
|
||||
|
|
|
@ -56,7 +56,7 @@ describe Project do
|
|||
|
||||
it "returns the full web URL for this repo" do
|
||||
project = Project.new(:code => "somewhere")
|
||||
project.web_url.should == "#{GIT_HOST['host']}/somewhere"
|
||||
project.web_url.should == "#{Gitlab.config.url}/somewhere"
|
||||
end
|
||||
|
||||
describe :valid_repo? do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue