cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [14/18] git commit: Reset csproj object on every test, seems to fix a failing test for me.
Date Wed, 24 Jul 2013 22:39:54 GMT
Reset csproj object on every test, seems to fix a failing test for me.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/bdf4d061
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/bdf4d061
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/bdf4d061

Branch: refs/heads/plugman-registry
Commit: bdf4d061b64813b378944b15842c4058ad583cbf
Parents: 1fb1ee2
Author: Fil Maj <maj.fil@gmail.com>
Authored: Wed Jul 24 12:55:33 2013 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Wed Jul 24 12:55:33 2013 -0700

----------------------------------------------------------------------
 spec/util/csproj.spec.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/bdf4d061/spec/util/csproj.spec.js
----------------------------------------------------------------------
diff --git a/spec/util/csproj.spec.js b/spec/util/csproj.spec.js
index 7228f15..5bd3553 100644
--- a/spec/util/csproj.spec.js
+++ b/spec/util/csproj.spec.js
@@ -29,13 +29,17 @@ describe('csproj', function() {
     });
 
     describe('source file', function() {
-        var test_csproj = new csproj(example_csproj);
+        var test_csproj;
         var page_test   = path.join('src', 'UI', 'PageTest.xaml');
         var page_test_cs = path.join('src', 'UI', 'PageTest.xaml.cs');
         var lib_test    = path.join('lib', 'LibraryTest.dll');
         var file_test   = path.join('src', 'FileTest.cs');
         var content_test   = path.join('src', 'Content.img');
 
+        beforeEach(function() {
+            test_csproj = new csproj(example_csproj);
+        });
+
         describe('add method', function() {
 
             it('should properly add .xaml files', function() {


Mime
View raw message