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
fb9d5bf5
Commit
fb9d5bf5
authored
Jul 19, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spec example for MySQL
parent
aa57a76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spec/lib/gitlab/geo_spec.rb
spec/lib/gitlab/geo_spec.rb
+1
-1
No files found.
spec/lib/gitlab/geo_spec.rb
View file @
fb9d5bf5
...
@@ -88,7 +88,7 @@ describe Gitlab::Geo, lib: true do
...
@@ -88,7 +88,7 @@ describe Gitlab::Geo, lib: true do
it
'returns false when database schema does not contain required tables'
do
it
'returns false when database schema does not contain required tables'
do
if
Gitlab
::
Database
.
mysql?
if
Gitlab
::
Database
.
mysql?
allow
(
GeoNode
).
to
receive
(
:exists?
).
and_raise
(
Mysql2
::
Error
)
allow
(
GeoNode
).
to
receive
(
:exists?
).
and_raise
(
Mysql2
::
Error
,
"Table 'gitlabhq_test.geo_nodes' doesn't exist: SHOW FULL FIELDS FROM `geo_nodes`"
)
else
else
allow
(
GeoNode
).
to
receive
(
:exists?
).
and_raise
(
PG
::
UndefinedTable
)
allow
(
GeoNode
).
to
receive
(
:exists?
).
and_raise
(
PG
::
UndefinedTable
)
end
end
...
...
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