Skip to content

Commit 35154c9

Browse files
committed
Fix tests which need to factor in SemVer
I don't plan on using crazy semver pre-release versions yet so I made the regex very simple.
1 parent b0cd9ab commit 35154c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp.Tests/NuSpecUpdateTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class WhenSpecFileIsValid : BaseNuSpecUpdateTest
6767
private string _expectedDescription = "Simple REST and HTTP API Client";
6868
private string _expectedAuthors = "John Sheehan, RestSharp Community";
6969
private string _expectedOwners = "John Sheehan, RestSharp Community";
70-
private Regex _expectedVersion = new Regex(@"^\d+\.\d+\.\d+$", RegexOptions.Compiled);
70+
private Regex _expectedVersion = new Regex(@"^\d+\.\d+\.\d+(-\w+)$", RegexOptions.Compiled);
7171

7272
protected override void Setup()
7373
{

0 commit comments

Comments
 (0)