mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Fixed: All the tests
This commit is contained in:
@@ -7,6 +7,7 @@ using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Core.Music;
|
||||
using NzbDrone.Core.Validation.Paths;
|
||||
using NzbDrone.Test.Common;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
|
||||
namespace NzbDrone.Core.Test.ValidationTests
|
||||
{
|
||||
@@ -52,8 +53,9 @@ namespace NzbDrone.Core.Test.ValidationTests
|
||||
{
|
||||
MonoOnly();
|
||||
|
||||
var bin = OsInfo.IsOsx ? "/System" : "/bin";
|
||||
var artist = Builder<Artist>.CreateNew()
|
||||
.With(s => s.Path = "/bin")
|
||||
.With(s => s.Path = bin)
|
||||
.Build();
|
||||
|
||||
_validator.Validate(artist).IsValid.Should().BeFalse();
|
||||
@@ -64,9 +66,10 @@ namespace NzbDrone.Core.Test.ValidationTests
|
||||
{
|
||||
MonoOnly();
|
||||
|
||||
var bin = OsInfo.IsOsx ? "/System" : "/bin";
|
||||
var artist = Builder<Artist>.CreateNew()
|
||||
.With(s => s.Path = "/bin/test")
|
||||
.Build();
|
||||
.With(s => s.Path = Path.Combine(bin, "test"))
|
||||
.Build();
|
||||
|
||||
_validator.Validate(artist).IsValid.Should().BeFalse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user