aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
authorJames Daily2013-08-20 12:12:31 -0400
committerIgor Minar2013-08-20 23:26:55 -0700
commit5c4ffb36deee18743beb149ceae4d63d5b1ae8d9 (patch)
tree0555bee774938bf081cae7918bc091905ee31187 /docs/spec
parentffe1665d026af836e23fc27451392daf1b1e711f (diff)
downloadangular.js-5c4ffb36deee18743beb149ceae4d63d5b1ae8d9.tar.bz2
fix(ngdocs): use cdn version to generate link to source files
Closes #3616 Closes #3675
Diffstat (limited to 'docs/spec')
-rw-r--r--docs/spec/sourceLinkSpec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/spec/sourceLinkSpec.js b/docs/spec/sourceLinkSpec.js
index 3dc73cc8..68d95236 100644
--- a/docs/spec/sourceLinkSpec.js
+++ b/docs/spec/sourceLinkSpec.js
@@ -20,10 +20,11 @@ describe('Docs Links', function() {
});
it('should have an "view source" button', function() {
+ spyOn(gruntUtil, 'getVersion').andReturn({cdn: '1.2.299'});
+
expect(doc.html()).
- toContain('<a href="http://github.com/angular/angular.js/tree/v' + gruntUtil.getVersion().number + '/test.js#L42" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a>');
+ toContain('<a href="http://github.com/angular/angular.js/tree/v1.2.299/test.js#L42" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a>');
});
-
});
});