Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Broken by 4e1be30
  • Loading branch information
Dicebot committed Aug 14, 2015
1 parent 66df468 commit 9cacebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/test/api.d
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ unittest
auto month = format("%02d", date.month);
auto expected_url = format("%s/%s/some_title", year, month);

auto ret = api.addPost("some title", "content");
auto ret = api.addPost("some title", "content", "tag1");
assert (ret.url == expected_url);

auto entry = api.getPost(year, month, "some_title");
// avoid figuring out exact timestamp stored
import std.regex;
auto md = entry.md.replaceAll(regex(r"Date: .+"), "XXX");
assert (md == "<!--\nTitle: some title\nXXX\n-->\ncontent");
assert (md == "<!--\nTitle: some title\nXXX\nTags: tag1\n-->\ncontent");
}

0 comments on commit 9cacebc

Please sign in to comment.