Skip to content

Commit

Permalink
Fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Apr 4, 2018
1 parent 5698d4f commit 281164a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Cake.XCode.Tests/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ public class XCodeTests : IDisposable
public XCodeTests ()
{
context = new FakeCakeContext ();
context.CakeContext.Environment.WorkingDirectory = System.IO.Path.Combine(Environment.CurrentDirectory, "..", "..", "..", "..", "..");

context.CakeContext.CleanDirectories ("./TestProjects/**/bin");
context.CakeContext.CleanDirectories ("./TestProjects/**/obj");
//context.CakeContext.CleanDirectories("./TestProjects/**/bin");
//context.CakeContext.CleanDirectories("./TestProjects/**/obj");

if (context.CakeContext.DirectoryExists ("./TestProjects/tmp"))
context.CakeContext.DeleteDirectory ("./TestProjects/tmp", true);
Expand Down Expand Up @@ -64,7 +65,7 @@ public void PodInstall ()
});

Assert.True (context.CakeContext.FileExists ("./TestProjects/tmp/Podfile.lock"));
Assert.True (context.CakeContext.DirectoryExists ("./TestProjects/tmp/Pods/GoogleAnalytics"));
Assert.True (context.CakeContext.FileExists ("./TestProjects/tmp/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a"));
}

[Fact]
Expand Down Expand Up @@ -93,7 +94,7 @@ public void PodUpdate ()
});

Assert.True (context.CakeContext.FileExists ("./TestProjects/tmp/Podfile.lock"));
Assert.True (context.CakeContext.DirectoryExists ("./TestProjects/tmp/Pods/GoogleAnalytics"));
Assert.True (context.CakeContext.FileExists ("./TestProjects/tmp/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a"));

context.CakeContext.CocoaPodUpdate ("./TestProjects/tmp/", new CocoaPodUpdateSettings {
NoIntegrate = true
Expand Down

0 comments on commit 281164a

Please sign in to comment.