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
da7af74e
Commit
da7af74e
authored
May 09, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose response variable for epic fixtures
parent
a18e4e59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ee/spec/javascripts/fixtures/epic.rb
ee/spec/javascripts/fixtures/epic.rb
+8
-4
No files found.
ee/spec/javascripts/fixtures/epic.rb
View file @
da7af74e
...
...
@@ -39,15 +39,19 @@ describe 'Epics (JavaScript fixtures)' do
end
describe
EpicPresenter
,
'(JavaScript fixtures)'
,
type: :presenter
do
let
(
:response
)
{
@json_data
.
to_json
}
it
'epic/mock_meta.json'
do
|
example
|
presenter
=
EpicPresenter
.
new
(
epic
,
current_user:
user
)
result
=
presenter
.
show_data
(
base_data:
{},
author_icon:
'icon_path'
)
store_frontend_fixture
(
result
.
to_json
,
example
.
description
)
@json_data
=
presenter
.
show_data
(
base_data:
{},
author_icon:
'icon_path'
)
store_frontend_fixture
(
@json_data
.
to_json
,
example
.
description
)
end
end
describe
IssuablesHelper
,
'(JavaScript fixtures)'
,
type: :helper
do
let
(
:response
)
{
@json_data
.
to_json
}
before
do
allow
(
helper
).
to
receive
(
:current_user
).
and_return
(
user
)
allow
(
helper
).
to
receive
(
:can?
).
and_return
(
true
)
...
...
@@ -56,8 +60,8 @@ describe 'Epics (JavaScript fixtures)' do
it
'epic/mock_data.json'
do
|
example
|
@group
=
epic
.
group
result
=
helper
.
issuable_initial_data
(
epic
)
store_frontend_fixture
(
result
.
to_json
,
example
.
description
)
@json_data
=
helper
.
issuable_initial_data
(
epic
)
store_frontend_fixture
(
@json_data
.
to_json
,
example
.
description
)
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