Commit cc1eb965 authored by Angus MacArthur's avatar Angus MacArthur

style fixes

parent cfe13a0d
...@@ -42,21 +42,24 @@ describe Projects::CreateContext do ...@@ -42,21 +42,24 @@ describe Projects::CreateContext do
stub_const("Settings", Class.new) stub_const("Settings", Class.new)
Settings.stub_chain(:gitlab, :default_projects_features).and_return(@settings) Settings.stub_chain(:gitlab, :default_projects_features).and_return(@settings)
end end
context 'should be public when setting is public' do context 'should be public when setting is public' do
before do before do
@settings.stub(:public) { true } @settings.stub(:public) { true }
@project = create_project(@user, @opts) @project = create_project(@user, @opts)
end end
it { @project.public.should be_true } it { @project.public.should be_true }
end end
context 'should be private when setting is not public' do context 'should be private when setting is not public' do
before do before do
@settings.stub(:public) { false } @settings.stub(:public) { false }
@project = create_project(@user, @opts) @project = create_project(@user, @opts)
end end
it { @project.public.should be_false } it { @project.public.should be_false }
end end
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