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
2f704d83
Commit
2f704d83
authored
Apr 11, 2019
by
Winnie Hellmann
Committed by
Phil Hughes
Apr 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete static_fixtures.rb for static HAML fixtures
parent
924cd417
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
30 deletions
+15
-30
spec/javascripts/fixtures/environments/table.html.haml
spec/javascripts/fixtures/environments/table.html.haml
+0
-11
spec/javascripts/fixtures/static/environments/table.html
spec/javascripts/fixtures/static/environments/table.html
+15
-0
spec/javascripts/fixtures/static_fixtures.rb
spec/javascripts/fixtures/static_fixtures.rb
+0
-19
No files found.
spec/javascripts/fixtures/environments/table.html.haml
deleted
100644 → 0
View file @
924cd417
%table
%thead
%tr
%th
Environment
%th
Last deployment
%th
Job
%th
Commit
%th
%th
%tbody
%tr
#environment-row
spec/javascripts/fixtures/static/environments/table.html
0 → 100644
View file @
2f704d83
<table>
<thead>
<tr>
<th>
Environment
</th>
<th>
Last deployment
</th>
<th>
Job
</th>
<th>
Commit
</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr
id=
"environment-row"
></tr>
</tbody>
</table>
spec/javascripts/fixtures/static_fixtures.rb
deleted
100644 → 0
View file @
924cd417
require
'spec_helper'
describe
ApplicationController
,
'(Static JavaScript fixtures)'
,
type: :controller
do
include
JavaScriptFixturesHelpers
Dir
.
glob
(
'{,ee/}spec/javascripts/fixtures/**/*.haml'
).
map
do
|
file_path
|
it
"static/
#{
file_path
.
sub
(
%r{
\A
(ee/)?spec/javascripts/fixtures/}
,
''
).
sub
(
/\.haml\z/
,
''
)
}
"
do
|
example
|
store_frontend_fixture
(
render_template
(
file_path
),
example
.
description
)
end
end
private
def
render_template
(
template_file_name
)
controller
=
ApplicationController
.
new
controller
.
prepend_view_path
(
File
.
dirname
(
template_file_name
))
controller
.
render_to_string
(
template:
File
.
basename
(
template_file_name
),
layout:
false
)
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