Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
4dbc309b
Commit
4dbc309b
authored
Apr 16, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set ENV['IN_MEMORY_APPLICATION_SETTINGS'] to 'true in spec/db/production/settings_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
c3e26860
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
spec/db/production/settings_spec.rb
spec/db/production/settings_spec.rb
+6
-1
No files found.
spec/db/production/settings_spec.rb
View file @
4dbc309b
...
@@ -2,10 +2,15 @@ require 'spec_helper'
...
@@ -2,10 +2,15 @@ require 'spec_helper'
require
'rainbow/ext/string'
require
'rainbow/ext/string'
describe
'seed production settings'
do
describe
'seed production settings'
do
include
StubENV
let
(
:settings_file
)
{
Rails
.
root
.
join
(
'db/fixtures/production/010_settings.rb'
)
}
let
(
:settings_file
)
{
Rails
.
root
.
join
(
'db/fixtures/production/010_settings.rb'
)
}
let
(
:settings
)
{
Gitlab
::
CurrentSettings
.
current_application_settings
}
let
(
:settings
)
{
Gitlab
::
CurrentSettings
.
current_application_settings
}
before
do
# It's important to set this variable so that we don't save a memoized
# (supposed to be) in-memory record in `Gitlab::CurrentSettings.in_memory_application_settings`
stub_env
(
'IN_MEMORY_APPLICATION_SETTINGS'
,
'false'
)
end
context
'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN is set in the environment'
do
context
'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN is set in the environment'
do
before
do
before
do
stub_env
(
'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN'
,
'013456789'
)
stub_env
(
'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN'
,
'013456789'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment