Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus MacArthur <amacarthur@blackberry.com>2013-09-10 18:49:23 +0400
committerAngus MacArthur <amacarthur@blackberry.com>2013-09-10 18:49:23 +0400
commitcc1eb9657e67827e3de88d86b7f09f6aa11767a2 (patch)
treeb96ec2d6ff2f9b49f86e51a62cebbe838f991c0b
parentcfe13a0d9f052ab604a8d76e89b4c2fdaf64c2fd (diff)
style fixes
-rw-r--r--spec/contexts/projects_create_context_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/contexts/projects_create_context_spec.rb b/spec/contexts/projects_create_context_spec.rb
index 3cabec283d7..be492585b27 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