Skip to content

Commit

Permalink
Normalised the paths in the tests so that they pass on *nix systems
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-chambers committed Aug 13, 2015
1 parent ff5d368 commit 0263949
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/Test.FAKECore/ChangeWatcherSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Fake;
using System.Linq;
using Fake;
using Machine.Specifications;
using Microsoft.FSharp.Collections;

Expand All @@ -15,8 +16,8 @@ public class when_calculating_directories_to_watch
var dirsToWatch = ChangeWatcher.calcDirsToWatch(fileIncludes);

dirsToWatch.Length.ShouldEqual(2);
dirsToWatch.ShouldContain(@"C:\Project\test1\bin");
dirsToWatch.ShouldContain(@"C:\Project\test2\bin");
dirsToWatch.ShouldContain(Fake.Globbing.normalizePath(@"C:\Project\test1\bin"));
dirsToWatch.ShouldContain(Fake.Globbing.normalizePath(@"C:\Project\test2\bin"));
};

It should_only_take_the_most_root_path_when_multiple_directories_share_a_root =
Expand All @@ -28,7 +29,7 @@ public class when_calculating_directories_to_watch
var dirsToWatch = ChangeWatcher.calcDirsToWatch(fileIncludes);

dirsToWatch.Length.ShouldEqual(1);
dirsToWatch.ShouldContain(@"C:\Project\tests");
dirsToWatch.ShouldContain(Fake.Globbing.normalizePath(@"C:\Project\tests"));
};
}
}

0 comments on commit 0263949

Please sign in to comment.