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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
221c271c
Commit
221c271c
authored
Apr 10, 2021
by
Ben Bodenmiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to "read-write" rather than "read write" in database_spec.rb
parent
6bb56c2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/gitlab/database_spec.rb
spec/lib/gitlab/database_spec.rb
+2
-2
No files found.
spec/lib/gitlab/database_spec.rb
View file @
221c271c
...
...
@@ -407,13 +407,13 @@ RSpec.describe Gitlab::Database do
expect
(
described_class
.
db_read_only?
).
to
be_truthy
end
it
'detects a read
write database'
do
it
'detects a read
-
write database'
do
allow
(
ActiveRecord
::
Base
.
connection
).
to
receive
(
:execute
).
with
(
'SELECT pg_is_in_recovery()'
).
and_return
([{
"pg_is_in_recovery"
=>
"f"
}])
expect
(
described_class
.
db_read_only?
).
to
be_falsey
end
it
'detects a read
write database'
do
it
'detects a read
-
write database'
do
allow
(
ActiveRecord
::
Base
.
connection
).
to
receive
(
:execute
).
with
(
'SELECT pg_is_in_recovery()'
).
and_return
([{
"pg_is_in_recovery"
=>
false
}])
expect
(
described_class
.
db_read_only?
).
to
be_falsey
...
...
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