Commit 0cd28156 authored by Izaak Alpert's avatar Izaak Alpert

Updated missed styles

Change-Id: I05e02ff7e36e2350cdf5d2b94095ada9760a204e
parent 3e71af9f
...@@ -16,7 +16,7 @@ class ProjectObserver < BaseObserver ...@@ -16,7 +16,7 @@ class ProjectObserver < BaseObserver
end end
if project.wiki_enabled? if project.wiki_enabled?
#force the creation of a wiki, # force the creation of a wiki,
GollumWiki.new(project, project.owner).wiki GollumWiki.new(project, project.owner).wiki
end end
end end
......
...@@ -70,20 +70,23 @@ describe UsersProjectObserver do ...@@ -70,20 +70,23 @@ describe UsersProjectObserver do
context 'wiki_enabled creates repository directory' do context 'wiki_enabled creates repository directory' do
context 'wiki_enabled true creates wiki repository directory' do context 'wiki_enabled true creates wiki repository directory' do
before do before do
@project = create(:project, wiki_enabled:true) @project = create(:project, wiki_enabled: true)
@path = GollumWiki.new(@project, user).send(:path_to_repo) @path = GollumWiki.new(@project, user).send(:path_to_repo)
end end
after do after do
FileUtils.rm_rf(@path) FileUtils.rm_rf(@path)
end end
it { File.exists?(@path).should be_true } it { File.exists?(@path).should be_true }
end end
context 'wiki_enabled false does not create wiki repository directory' do context 'wiki_enabled false does not create wiki repository directory' do
before do before do
@project = create(:project, wiki_enabled:false) @project = create(:project, wiki_enabled: false)
@path = GollumWiki.new(@project, user).send(:path_to_repo) @path = GollumWiki.new(@project, user).send(:path_to_repo)
end end
it { File.exists?(@path).should be_false } it { File.exists?(@path).should be_false }
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment