From f3cbb0a4503fca0420d8d5b276d011391ce31f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Rodr=C3=ADguez?= Date: Thu, 27 Apr 2017 17:04:59 -0300 Subject: [PATCH] Clean import of shared examples for protected branches/tags --- spec/features/protected_branches_spec.rb | 1 - spec/features/protected_tags_spec.rb | 1 - .../protected_branches/access_control_ce_shared_examples.rb} | 0 .../protected_tags/access_control_ce_shared_examples.rb} | 0 4 files changed, 2 deletions(-) rename spec/{features/protected_branches/access_control_ce_spec.rb => support/protected_branches/access_control_ce_shared_examples.rb} (100%) rename spec/{features/protected_tags/access_control_ce_spec.rb => support/protected_tags/access_control_ce_shared_examples.rb} (100%) diff --git a/spec/features/protected_branches_spec.rb b/spec/features/protected_branches_spec.rb index fc9b293c393..884d1bbb10c 100644 --- a/spec/features/protected_branches_spec.rb +++ b/spec/features/protected_branches_spec.rb @@ -1,5 +1,4 @@ require 'spec_helper' -Dir["./spec/features/protected_branches/*.rb"].sort.each { |f| require f } feature 'Projected Branches', feature: true, js: true do let(:user) { create(:user, :admin) } diff --git a/spec/features/protected_tags_spec.rb b/spec/features/protected_tags_spec.rb index e68448467b0..66236dbc7fc 100644 --- a/spec/features/protected_tags_spec.rb +++ b/spec/features/protected_tags_spec.rb @@ -1,5 +1,4 @@ require 'spec_helper' -Dir["./spec/features/protected_tags/*.rb"].sort.each { |f| require f } feature 'Projected Tags', feature: true, js: true do let(:user) { create(:user, :admin) } diff --git a/spec/features/protected_branches/access_control_ce_spec.rb b/spec/support/protected_branches/access_control_ce_shared_examples.rb similarity index 100% rename from spec/features/protected_branches/access_control_ce_spec.rb rename to spec/support/protected_branches/access_control_ce_shared_examples.rb diff --git a/spec/features/protected_tags/access_control_ce_spec.rb b/spec/support/protected_tags/access_control_ce_shared_examples.rb similarity index 100% rename from spec/features/protected_tags/access_control_ce_spec.rb rename to spec/support/protected_tags/access_control_ce_shared_examples.rb