You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/07/21 02:54:03 UTC
cordova-lib git commit: CB-9384 Added tests that test plugin fetch
from github branch|tag|sha
Repository: cordova-lib
Updated Branches:
refs/heads/master 21fc9c01a -> d8f491b0e
CB-9384 Added tests that test plugin fetch from github branch|tag|sha
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/d8f491b0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/d8f491b0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/d8f491b0
Branch: refs/heads/master
Commit: d8f491b0e47f47e44e41697e5fd9781fdd1b29b7
Parents: 21fc9c0
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Jul 20 17:53:49 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon Jul 20 17:53:49 2015 -0700
----------------------------------------------------------------------
cordova-lib/spec-plugman/fetch.spec.js | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d8f491b0/cordova-lib/spec-plugman/fetch.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-plugman/fetch.spec.js b/cordova-lib/spec-plugman/fetch.spec.js
index 2bc0188..df54d30 100644
--- a/cordova-lib/spec-plugman/fetch.spec.js
+++ b/cordova-lib/spec-plugman/fetch.spec.js
@@ -212,6 +212,33 @@ describe('fetch', function() {
});
});
});
+
+ describe('github plugins', function() {
+ // these tests actually pull a plugin from github
+ beforeEach(function(){
+ realrm('-rf',temp);
+ });
+
+ // this commit uses the new id
+ it('should fetch from a commit-sha', function(done) {
+ wrapper(fetch("http://github.com/apache/cordova-plugin-device.git#ad5f1e7bfd05ef98c01df549a0fa98036a5625db", temp, { expected_id: "cordova-plugin-device" }), done, function() {
+ expect(1).toBe(1);
+ });
+ });
+ // this branch uses the old id
+ it('should fetch from a branch', function(done) {
+ wrapper(fetch("http://github.com/apache/cordova-plugin-device.git#cdvtest", temp, { expected_id: "org.apache.cordova.device" }), done, function() {
+ expect(1).toBe(1);
+ });
+ });
+ // this tag uses the new id
+ it('should fetch from a tag', function(done) {
+ wrapper(fetch("http://github.com/apache/cordova-plugin-device.git#r1.0.0", temp, { expected_id: "cordova-plugin-device" }), done, function() {
+ expect(1).toBe(1);
+ });
+ });
+ });
+
describe('registry plugins', function() {
var pluginId = 'dummyplugin', sFetch;
var rm, sym, save_metadata;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org