summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-03-17 11:18:56 +0100
committerJacob Vosmaer <jacob@gitlab.com>2017-03-21 14:55:41 +0100
commit6c3ce620a90d04275f941e9074b51e7bcdf65d50 (patch)
tree787a72755beb3e3884d74ffbddec8b0963031e57
parent275b7797c1fa104e4a0b94823ed48ec7157a50a9 (diff)
downloadgitlab-ce-6c3ce620a90d04275f941e9074b51e7bcdf65d50.tar.gz
Remove unnecessary before block
-rw-r--r--spec/tasks/gitlab/gitaly_rake_spec.rb3
-rw-r--r--spec/tasks/gitlab/workhorse_rake_spec.rb3
2 files changed, 0 insertions, 6 deletions
diff --git a/spec/tasks/gitlab/gitaly_rake_spec.rb b/spec/tasks/gitlab/gitaly_rake_spec.rb
index 87c937cdc54..d95baddf546 100644
--- a/spec/tasks/gitlab/gitaly_rake_spec.rb
+++ b/spec/tasks/gitlab/gitaly_rake_spec.rb
@@ -9,9 +9,6 @@ describe 'gitlab:gitaly namespace rake task' do
let(:repo) { 'https://gitlab.com/gitlab-org/gitaly.git' }
let(:clone_path) { Rails.root.join('tmp/tests/gitaly').to_s }
let(:tag) { "v#{File.read(Rails.root.join(Gitlab::GitalyClient::SERVER_VERSION_FILE)).chomp}" }
- before do
- allow(ENV).to receive(:[])
- end
context 'no dir given' do
it 'aborts and display a help message' do
diff --git a/spec/tasks/gitlab/workhorse_rake_spec.rb b/spec/tasks/gitlab/workhorse_rake_spec.rb
index 6de66c3cf07..8a66a4aa047 100644
--- a/spec/tasks/gitlab/workhorse_rake_spec.rb
+++ b/spec/tasks/gitlab/workhorse_rake_spec.rb
@@ -9,9 +9,6 @@ describe 'gitlab:workhorse namespace rake task' do
let(:repo) { 'https://gitlab.com/gitlab-org/gitlab-workhorse.git' }
let(:clone_path) { Rails.root.join('tmp/tests/gitlab-workhorse').to_s }
let(:tag) { "v#{File.read(Rails.root.join(Gitlab::Workhorse::VERSION_FILE)).chomp}" }
- before do
- allow(ENV).to receive(:[])
- end
context 'no dir given' do
it 'aborts and display a help message' do