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
15b46241
Commit
15b46241
authored
Oct 04, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create dates support module and autoload it
parent
8c35317c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
qa/qa.rb
qa/qa.rb
+1
-0
qa/qa/support/dates.rb
qa/qa/support/dates.rb
+21
-0
No files found.
qa/qa.rb
View file @
15b46241
...
...
@@ -449,6 +449,7 @@ module QA
autoload
:Logging
,
'qa/support/page/logging'
end
autoload
:Api
,
'qa/support/api'
autoload
:Dates
,
'qa/support/dates'
autoload
:Waiter
,
'qa/support/waiter'
autoload
:Retrier
,
'qa/support/retrier'
end
...
...
qa/qa/support/dates.rb
0 → 100644
View file @
15b46241
# frozen_string_literal: true
module
QA
module
Support
module
Dates
def
current_date_yyyy_mm_dd
current_date
.
strftime
(
"%Y/%m/%d"
)
end
def
next_month_yyyy_mm_dd
current_date
.
next_month
.
strftime
(
"%Y/%m/%d"
)
end
private
def
current_date
DateTime
.
now
end
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