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
4e9f2bf1
Commit
4e9f2bf1
authored
Jul 29, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require replicables_for_geo_node method
parent
253e2ba8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ee/spec/support/shared_examples/models/concerns/replicable_model_shared_examples.rb
...mples/models/concerns/replicable_model_shared_examples.rb
+12
-0
No files found.
ee/spec/support/shared_examples/models/concerns/replicable_model_shared_examples.rb
View file @
4e9f2bf1
...
...
@@ -20,4 +20,16 @@ RSpec.shared_examples 'a replicable model' do
model_record
.
save!
end
describe
'.replicables_for_geo_node'
do
let_it_be
(
:secondary
)
{
create
(
:geo_node
)
}
before
do
stub_current_geo_node
(
secondary
)
end
it
'is implemented'
do
expect
(
model_record
.
class
.
replicables_for_geo_node
).
to
be_an
(
ActiveRecord
::
Relation
)
end
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