From cc1eb9657e67827e3de88d86b7f09f6aa11767a2 Mon Sep 17 00:00:00 2001 From: Angus MacArthur Date: Tue, 10 Sep 2013 10:49:23 -0400 Subject: [PATCH] style fixes --- spec/contexts/projects_create_context_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/contexts/projects_create_context_spec.rb b/spec/contexts/projects_create_context_spec.rb index 3cabec2..be49258 100644 --- a/spec/contexts/projects_create_context_spec.rb +++ b/spec/contexts/projects_create_context_spec.rb @@ -42,21 +42,24 @@ describe Projects::CreateContext do stub_const("Settings", Class.new) Settings.stub_chain(:gitlab, :default_projects_features).and_return(@settings) end + context 'should be public when setting is public' do before do @settings.stub(:public) { true } @project = create_project(@user, @opts) end + it { @project.public.should be_true } end + context 'should be private when setting is not public' do before do @settings.stub(:public) { false } @project = create_project(@user, @opts) end + it { @project.public.should be_false } end - end end -- libgit2 0.21.2