summaryrefslogtreecommitdiff
path: root/spec/javascripts/merge_request_tabs_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/merge_request_tabs_spec.js')
-rw-r--r--spec/javascripts/merge_request_tabs_spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/javascripts/merge_request_tabs_spec.js b/spec/javascripts/merge_request_tabs_spec.js
index 4facc42c5b4..130d391bfab 100644
--- a/spec/javascripts/merge_request_tabs_spec.js
+++ b/spec/javascripts/merge_request_tabs_spec.js
@@ -29,7 +29,7 @@
describe('#activateTab', function () {
beforeEach(function () {
- spyOn($, 'ajax').and.callFake(function() {});
+ spyOn($, 'ajax').and.callFake(function () {});
fixture.load('merge_request_tabs.html');
this.subject = this.class.activateTab;
});
@@ -53,7 +53,7 @@
describe('#setCurrentAction', function () {
beforeEach(function () {
- spyOn($, 'ajax').and.callFake(function() {});
+ spyOn($, 'ajax').and.callFake(function () {});
this.subject = this.class.setCurrentAction;
});
it('changes from commits', function () {
@@ -110,9 +110,9 @@
expect(this.subject('show')).toBe('/foo/bar/merge_requests/1');
});
});
- describe('#loadDiff', function() {
- it('requires an absolute pathname', function() {
- spyOn($, 'ajax').and.callFake(function(options) {
+ describe('#loadDiff', function () {
+ it('requires an absolute pathname', function () {
+ spyOn($, 'ajax').and.callFake(function (options) {
expect(options.url).toEqual('/foo/bar/merge_requests/1/diffs.json');
});
this.class.loadDiff('/foo/bar/merge_requests/1/diffs');