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
end
if project.wiki_enabled?
#force the creation of a wiki,
# force the creation of a wiki,
GollumWiki.new(project, project.owner).wiki
end
end
......
......@@ -70,20 +70,23 @@ describe UsersProjectObserver do
context 'wiki_enabled creates repository directory' do
context 'wiki_enabled true creates wiki repository directory' do
before do
@project = create(:project, wiki_enabled:true)
@project = create(:project, wiki_enabled: true)
@path = GollumWiki.new(@project, user).send(:path_to_repo)
end
after do
FileUtils.rm_rf(@path)
end
it { File.exists?(@path).should be_true }
end
context 'wiki_enabled false does not create wiki repository directory' do
before do
@project = create(:project, wiki_enabled:false)
@project = create(:project, wiki_enabled: false)
@path = GollumWiki.new(@project, user).send(:path_to_repo)
end
it { File.exists?(@path).should be_false }
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