summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Goodman <jgoodman@gitlab.com>2019-07-31 11:06:50 -0400
committerJason Goodman <jgoodman@gitlab.com>2019-07-31 11:06:50 -0400
commit3830d34159f128120d6c57e82ada6855550ccc36 (patch)
tree8c38fb18f21cb3a1dc2551660709b3480167dea8
parentcccdc0645284b8ac933e981f004c19eb162405fe (diff)
downloadgitlab-ce-double-slash-64592.tar.gz
Move using to top describe blockdouble-slash-64592
-rw-r--r--spec/models/environment_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb
index 2b67f6d7e92..d2e0bed721e 100644
--- a/spec/models/environment_spec.rb
+++ b/spec/models/environment_spec.rb
@@ -4,6 +4,7 @@ require 'spec_helper'
describe Environment, :use_clean_rails_memory_store_caching do
include ReactiveCachingHelpers
+ using RSpec::Parameterized::TableSyntax
let(:project) { create(:project, :stubbed_repository) }
subject(:environment) { create(:environment, project: project) }
@@ -794,8 +795,6 @@ describe Environment, :use_clean_rails_memory_store_caching do
end
context 'when the public path is known' do
- using RSpec::Parameterized::TableSyntax
-
where(:external_url, :public_path, :full_url) do
'http://example.com' | 'file.html' | 'http://example.com/file.html'
'http://example.com/' | 'file.html' | 'http://example.com/file.html'