Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved to youtrack.codebetter.com for tests and all passing

  • Loading branch information...
commit 2bb153d9299dce3ef4074fed044cc8512c324bd6 1 parent 63417cb
@hhariri hhariri authored
View
7 src/YouTrackSharp.Specs/Bugs/IssueManagementBugs.cs
@@ -48,5 +48,12 @@ public class YTSRP9 :AuthenticatedYouTrackConnectionForIssue
protected static IEnumerable<Issue> issues;
}
+ public class YTSRP15: AuthenticatedYouTrackConnectionForIssue
+ {
+ Because of = () => { issue = issueManagement.GetIssue("SB-2"); };
+
+ It should_contain_assignee = () => { issue.Assignee.ShouldEqual("hhariri"); };
+ static Issue issue;
+ }
}
View
2  src/YouTrackSharp.Specs/Helpers/YouTrackConnection.cs
@@ -36,6 +36,6 @@ namespace YouTrackSharp.Specs.Helpers
public class YouTrackConnection
{
protected static Connection connection;
- Establish context = () => { connection = new Connection("youtrack.jetbrains.net"); };
+ Establish context = () => { connection = new Connection("youtrack.codebetter.com"); };
}
}
View
15 src/YouTrackSharp.Specs/Specs/IssueManagementSpecs.cs
@@ -52,9 +52,9 @@ public class when_requesting_list_of_issues_for_a_project_given_authenticated_co
[Subject(typeof (IssueManagement))]
public class when_requesting_a_specific_issue_given_authenticated_connection : AuthenticatedYouTrackConnectionForIssue
{
- Because of = () => { issue = issueManagement.GetIssue("SB-282"); };
+ Because of = () => { issue = issueManagement.GetIssue("SB-1"); };
- It should_return_issue_with_correct_id = () => issue.Id.ShouldEqual("SB-282");
+ It should_return_issue_with_correct_id = () => issue.Id.ShouldEqual("SB-1");
It should_return_issue_with_correct_project_name = () => issue.ProjectShortName.ShouldEqual("SB");
@@ -79,10 +79,9 @@ public class when_requesting_a_specific_issues_that_does_not_exist_given_authent
}
[Subject(typeof (IssueManagement))]
- [Ignore("Need to fix permissions on server")]
public class when_retrieving_comments_of_issue_that_has_comments_given_authenticated_connection : AuthenticatedYouTrackConnectionForIssue
{
- Because of = () => { comments = issueManagement.GetCommentsForIssue("SB-560"); };
+ Because of = () => { comments = issueManagement.GetCommentsForIssue("SB-1"); };
It should_return_the_comments = () => comments.ShouldNotBeNull();
@@ -140,7 +139,7 @@ public class when_checking_to_see_if_an_existing_issue_exists: AuthenticatedYouT
{
Because of = () =>
{
- result = issueManagement.CheckIfIssueExists("SB-560");
+ result = issueManagement.CheckIfIssueExists("SB-1");
};
@@ -150,12 +149,11 @@ public class when_checking_to_see_if_an_existing_issue_exists: AuthenticatedYouT
}
[Subject(typeof (IssueManagement))]
- [Ignore("Need to fix permissions on server")]
public class when_adding_an_attachment_to_an_existing_issue: AuthenticatedYouTrackConnectionForIssue
{
Because of = () =>
{
- issueManagement.AttachFileToIssue("SB-560", @"Helpers\TestAtt.txt");
+ issueManagement.AttachFileToIssue("SB-1", @"Helpers\TestAtt.txt");
};
It should_be_successful = () =>
@@ -165,12 +163,11 @@ public class when_adding_an_attachment_to_an_existing_issue: AuthenticatedYouTra
}
[Subject(typeof (IssueManagement))]
- [Ignore("Need to fix permissions on server")]
public class when_applying_a_command_to_an_existing_issue : AuthenticatedYouTrackConnectionForIssue
{
Because of = () =>
{
- issueManagement.ApplyCommand("SB-560", "Fixed", "");
+ issueManagement.ApplyCommand("SB-1", "Fixed", "");
};
View
1  src/YouTrackSharp.Specs/Specs/ProjectManagementSpecs.cs
@@ -98,7 +98,6 @@ public class when_retrieving_a_list_of_resolution_states_given_authenticated_con
static IEnumerable<ProjectResolutionType> resolutions;
}
- [Ignore("Permissions changed on server")]
[Subject(typeof(ProjectManagement))]
public class when_retrieving_an_existing_project_by_name : AuthenticatedYouTrackConnectionForProjectSpecs
{
View
2  src/YouTrackSharp.Specs/Specs/UserManagementSpecs.cs
@@ -50,7 +50,7 @@ public class when_requesting_user_information_of_existing_user_given_authenticat
It should_contain_valid_username = () => user.Username.ShouldEqual("youtrackapi");
- It should_contain_valid_fullname = () => user.FullName.ShouldEqual("YouTrack API");
+ It should_contain_valid_fullname = () => user.FullName.ShouldEqual("YoutrackAPI User");
static User user;
static UserManagement userManagement;
Please sign in to comment.
Something went wrong with that request. Please try again.