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
Boxiang Sun
gitlab-ce
Commits
d32e91d0
Commit
d32e91d0
authored
Oct 29, 2018
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set a fixed date for frontend fixtures
parent
5a727a4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
spec/support/helpers/javascript_fixtures_helpers.rb
spec/support/helpers/javascript_fixtures_helpers.rb
+7
-0
No files found.
spec/support/helpers/javascript_fixtures_helpers.rb
View file @
d32e91d0
...
@@ -6,6 +6,13 @@ module JavaScriptFixturesHelpers
...
@@ -6,6 +6,13 @@ module JavaScriptFixturesHelpers
FIXTURE_PATH
=
'spec/javascripts/fixtures'
.
freeze
FIXTURE_PATH
=
'spec/javascripts/fixtures'
.
freeze
def
self
.
included
(
base
)
base
.
around
do
|
example
|
# pick an arbitrary date from the past, so tests are not time dependent
Timecop
.
freeze
(
Time
.
utc
(
2015
,
7
,
3
,
10
))
{
example
.
run
}
end
end
# Public: Removes all fixture files from given directory
# Public: Removes all fixture files from given directory
#
#
# directory_name - directory of the fixtures (relative to FIXTURE_PATH)
# directory_name - directory of the fixtures (relative to FIXTURE_PATH)
...
...
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