diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-03-21 01:26:58 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-03-21 01:26:58 +0300 |
commit | 45e8650c4f987f0a25d829bf8ac189b023f1eaa3 (patch) | |
tree | d419758f13c209b876ba41d1740ee6e6fc1c0fef /spec/helpers | |
parent | 19aa20d528aca670fd22954e08bf05f2f7a8fe32 (diff) |
Fix specs
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/projects_helper_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb index 53207767581..dc324f1e60e 100644 --- a/spec/helpers/projects_helper_spec.rb +++ b/spec/helpers/projects_helper_spec.rb @@ -11,16 +11,8 @@ describe ProjectsHelper do describe "can_change_visibility_level?" do let(:project) { create(:project) } - - let(:fork_project) do - fork_project = create(:forked_project_with_submodules) - fork_project.build_forked_project_link(forked_to_project_id: fork_project.id, forked_from_project_id: project.id) - fork_project.save - - fork_project - end - let(:user) { create(:user) } + let(:fork_project) { Projects::ForkService.new(project, user).execute } it "returns false if there are no appropriate permissions" do allow(helper).to receive(:can?) { false } |