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
a1d22274
Commit
a1d22274
authored
Aug 03, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use expect_mirror_to_have_error_and_timeago in remote_mirror_spec
parent
5f1dfa9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
spec/features/projects/remote_mirror_spec.rb
spec/features/projects/remote_mirror_spec.rb
+8
-6
No files found.
spec/features/projects/remote_mirror_spec.rb
View file @
a1d22274
...
...
@@ -17,9 +17,7 @@ describe 'Project remote mirror', :feature do
visit
project_mirror_path
(
project
)
row
=
first
(
'.js-mirrors-table-body tr'
)
expect
(
row
).
to
have_content
(
'Error'
)
expect
(
row
).
to
have_content
(
'Never'
)
expect_mirror_to_have_error_and_timeago
(
'Never'
)
end
end
...
...
@@ -29,10 +27,14 @@ describe 'Project remote mirror', :feature do
visit
project_mirror_path
(
project
)
row
=
first
(
'.js-mirrors-table-body tr'
)
expect
(
row
).
to
have_content
(
'Error'
)
expect
(
row
).
to
have_content
(
'5 minutes ago'
)
expect_mirror_to_have_error_and_timeago
(
'5 minutes ago'
)
end
end
def
expect_mirror_to_have_error_and_timeago
(
timeago
)
row
=
first
(
'.js-mirrors-table-body tr'
)
expect
(
row
).
to
have_content
(
'Error'
)
expect
(
row
).
to
have_content
(
timeago
)
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