Skip to content

Commit

Permalink
Поднял тесты и разрешил добавлять ссылки с mintmanga.
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkAlex committed Dec 14, 2015
1 parent 7e138ac commit a380cdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MangaReader/Manga/Mangas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public static Mangas Create(Uri url)
{
Mangas manga = null;

if (url.Host == "readmanga.me" || url.Host == "adultmanga.ru")
if (url.Host == "readmanga.me" || url.Host == "adultmanga.ru" || url.Host == "mintmanga.com")
manga = new Grouple.Readmanga(url);
if (url.Host == "acomics.ru")
manga = new Acomic.Acomics(url);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Convertation/Convert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void Convert_1_12_to_main()
Assert.AreEqual(75, loadedMangas);

var loadedHistoryRecord = Mapping.Environment.Session.Query<MangaHistory>().Count();
Assert.AreEqual(5951, loadedHistoryRecord);
Assert.AreEqual(3397, loadedHistoryRecord);
}

[TestMethod]
Expand Down
2 changes: 1 addition & 1 deletion Tests/ReadmangaMoved.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void CreateWithHistoryAndMove()
manga = Environment.Session.Get<Readmanga>(manga.Id);
manga.Refresh();
manga.Save();
var chapters = new List<Chapter> { new Chapter(new Uri("http://adultmanga.ru/btooom_/vol1/1?mature=1")) };
var chapters = new List<Chapter> { new Chapter(new Uri("http://mintmanga.com/btooom_/vol1/1?mature=1")) };
var chartersNotInHistory = Services.History.GetItemsWithoutHistory(chapters);
Assert.AreEqual(0, chartersNotInHistory.Count);
}
Expand Down

0 comments on commit a380cdd

Please sign in to comment.