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 2013/07/30 01:36:25 UTC

[05/12] git commit: Reset csproj object on every test, seems to fix a failing test for me.

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/39274ea0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/39274ea0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/39274ea0

Branch: refs/heads/master
Commit: 39274ea08dc5dcc72226762f5ae669f105b3a669
Parents: c8c4bc1
Author: Fil Maj <ma...@gmail.com>
Authored: Wed Jul 24 12:55:33 2013 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Mon Jul 29 16:25:30 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/39274ea0/spec/util/csproj.spec.js
----------------------------------------------------------------------
diff --git a/spec/util/csproj.spec.js b/spec/util/csproj.spec.js
index f4153e9..046d5e4 100644
--- a/spec/util/csproj.spec.js
+++ b/spec/util/csproj.spec.js
@@ -32,12 +32,17 @@ describe('csproj', function() {
 
     describe('source file', function() {
 
+        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() {
             var test_csproj = new csproj(example1_csproj);
             it('should properly add .xaml files', function() {