Permalink
Browse files

moved contents out to flat files to see if we can get it back integrated

  • Loading branch information...
1 parent 709eba8 commit 21ce23e56a05b7e003586f5f76b9f27a38f61644 @shiftbot shiftbot committed Mar 20, 2013
@@ -93,6 +93,12 @@
<Compile Include="YamlExtensionsTests.cs" />
</ItemGroup>
<ItemGroup>
+ <None Include="data\markdown-no-header-output.md">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
+ <None Include="data\yaml-header-input.md">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using System.IO;
using Pretzel.Logic.Extensions;
using Xunit;
@@ -40,27 +41,15 @@ public void YamlHeader_WithSampleData_ReturnsExpectedValues()
Assert.Equal("lasttest", tags[2]);
}
- [Fact(Skip = "this sucks, damn you jgit")]
+ [Fact]
public void RemoveHeader_WithSampleValue_ContainsRestOfDocument()
{
- const string header = @"---
-layout: post
-title: This is a test jekyll document
-description: TEST ALL THE THINGS
-date: 2012-01-30
-tags :
-- test
-- alsotest
-- lasttest
----
-
-##Test
-
-This is a test of YAML parsing";
+ var input = File.ReadAllText("data\\yaml-header-input.md");
+ var expected = File.ReadAllText("data\\markdown-no-header-output.md");
- var result = header.ExcludeHeader();
+ var actual = input.ExcludeHeader();
- Assert.Equal("##Test\r\n\r\nThis is a test of YAML parsing", result);
+ Assert.Equal(expected, actual);
}
[Fact]
@@ -0,0 +1,3 @@
+##Test
+
+This is a test of YAML parsing
@@ -0,0 +1,14 @@
+---
+layout: post
+title: This is a test jekyll document
+description: TEST ALL THE THINGS
+date: 2012-01-30
+tags :
+- test
+- alsotest
+- lasttest
+---
+
+##Test
+
+This is a test of YAML parsing

0 comments on commit 21ce23e

Please sign in to comment.