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
977d1ca7
Commit
977d1ca7
authored
Dec 01, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add stubs for integration and unit tests.
parent
7a660f80
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
213 additions
and
0 deletions
+213
-0
spec/features/merge_requests/approvals_spec.rb
spec/features/merge_requests/approvals_spec.rb
+5
-0
spec/javascripts/merge_request_widget/approval_api_spec.js.es6
...javascripts/merge_request_widget/approval_api_spec.js.es6
+23
-0
spec/javascripts/merge_request_widget/approval_components_spec.js.es6
...ipts/merge_request_widget/approval_components_spec.js.es6
+64
-0
spec/javascripts/merge_request_widget/approval_store_spec.js.es6
...vascripts/merge_request_widget/approval_store_spec.js.es6
+64
-0
spec/javascripts/merge_request_widget/merge_request_widget_spec.js
...scripts/merge_request_widget/merge_request_widget_spec.js
+0
-0
spec/javascripts/vue_common_components/fa_icon_spec.js.es6
spec/javascripts/vue_common_components/fa_icon_spec.js.es6
+24
-0
spec/javascripts/vue_common_components/link_to_member_avatar_spec.js.es6
...s/vue_common_components/link_to_member_avatar_spec.js.es6
+33
-0
No files found.
spec/features/merge_requests/approvals_spec.rb
View file @
977d1ca7
...
...
@@ -162,6 +162,8 @@ feature 'Merge request approvals', js: true, feature: true do
end
context
'when group is assigned to a project'
do
it
'I am able to unapprove'
do
end
it
'I am able to approve'
do
create
:approver_group
,
group:
group
,
target:
project
...
...
@@ -176,6 +178,9 @@ feature 'Merge request approvals', js: true, feature: true do
end
context
'when group is assigned to a merge request'
do
it
'I am able to unapprove'
do
end
it
'I am able to approve'
do
create
:approver_group
,
group:
group
,
target:
merge_request
...
...
spec/javascripts/merge_request_widget/approval_api_spec.js.es6
0 → 100644
View file @
977d1ca7
/* eslint-disable */
//= require jquery
//= require vue
//= require issuable_time_tracker
((gl) => {
describe('Merge Request Approvals API', function() {
describe('Unapprove', function() {
method is defined
calls update state
});
describe('Approve', function() {
method is defined
calls update state
});
describe('Fetch', function() {
method is defined
calls update state
});
});
})(window.gl || (window.gl = {}));
spec/javascripts/merge_request_widget/approval_components_spec.js.es6
0 → 100644
View file @
977d1ca7
/* eslint-disable */
//= require jquery
//= require vue
//= require issuable_time_tracker
function initComponent(time_estimate = 100000, time_spent = 5000) {
fixture.set(`
<div>
<div id="mock-container"></div>
</div>
`);
this.initialdata = {
time_estimate,
time_spent
};
this.timetracker = new gl.issuabletimetracker({
el: '#mock-container',
propsdata: this.initialdata
});
}
vkkkj
((gl) => {
describe('Merge Request Approvals UI', function() {
describe('Initialization', function() {
describe('Approval Body', function() {
component is truthy
container is rendered
});
describe('Approval Footer', function() {
component is truthy
container is rendered
});
describe('Message Bus', function() {
instance is truthy
has correct children as components
});
});
describe('Approval Body Component', function() {
computed values
click handlers
display based on flags
});
describe('Approval Footer Component', function() {
computed values
click handlers
display based on flags
});
describe('Component Communication', function() {
approve changes other component
unapprove changes other component
both change the parent
});
});
})(window.gl || (window.gl = {}));
spec/javascripts/merge_request_widget/approval_store_spec.js.es6
0 → 100644
View file @
977d1ca7
/* eslint-disable */
//= require jquery
//= require vue
//= require issuable_time_tracker
function initComponent(time_estimate = 100000, time_spent = 5000) {
fixture.set(`
<div>
<div id="mock-container"></div>
</div>
`);
this.initialdata = {
time_estimate,
time_spent
};
this.timetracker = new gl.issuabletimetracker({
el: '#mock-container',
propsdata: this.initialdata
});
}
vkkkj
((gl) => {
describe('Merge Request Approvals UI', function() {
describe('Initialization', function() {
describe('Approval Body', function() {
component is truthy
container is rendered
});
describe('Approval Footer', function() {
component is truthy
container is rendered
});
describe('Message Bus', function() {
instance is truthy
has correct children as components
});
});
describe('Approval Body Component', function() {
computed values
click handlers
display based on flags
});
describe('Approval Footer Component', function() {
computed values
click handlers
display based on flags
});
describe('Component Communication', function() {
approve changes other component
unapprove changes other component
both change the parent
});
});
})(window.gl || (window.gl = {}));
spec/javascripts/merge_request_widget_spec.js
→
spec/javascripts/merge_request_widget
/merge_request_widget
_spec.js
View file @
977d1ca7
File moved
spec/javascripts/vue_common_components/fa_icon_spec.js.es6
0 → 100644
View file @
977d1ca7
/* eslint-disable */
//= require jquery
//= require vue
//= require issuable_time_tracker
((gl) => {
describe('Font Awesome Icon Component', function() {
describe('Initialization', function() {
is defined
has containing elements
configuration, including computed values and special config
loading state
});
describe('Invalid input', function() {
defaults applied or errors thrown
});
describe('Icons Rendered', function() {
single icon Rendered
multiple icons rendererd
});
});
})(window.gl || (window.gl = {}));
spec/javascripts/vue_common_components/link_to_member_avatar_spec.js.es6
0 → 100644
View file @
977d1ca7
/* eslint-disable */
//= require jquery
//= require vue
//= require issuable_time_tracker
((gl) => {
describe('Link To Members Components', function() {
describe('Initialization', function() {
is defined
has containing elements
configuration, including computed values and special config
loading state
});
describe('Invalid input', function() {
defaults applied or errors thrown
});
describe('Tooltip', function() {
hover state
display based on flags
});
describe('Avatar', function() {
avatarurl vs empty state vs gravatar
});
describe('Interaction', function() {
click link and handler fires
});
});
})(window.gl || (window.gl = {}));
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