mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
added slug integration tests
This commit is contained in:
parent
8373e1ce10
commit
54d95e2e20
5 changed files with 27 additions and 1 deletions
|
@ -47,9 +47,20 @@ namespace NzbDrone.Integration.Test
|
|||
|
||||
Series.All().Should().HaveCount(1);
|
||||
|
||||
|
||||
Series.Get(series.Id).Should().NotBeNull();
|
||||
Series.Get(series.TitleSlug).Should().NotBeNull();
|
||||
|
||||
Series.Delete(series.Id);
|
||||
|
||||
Series.All().Should().BeEmpty();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void wrong_slug_should_return_404()
|
||||
{
|
||||
Series.Get("non-existing-slug", HttpStatusCode.NotFound);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue