package com.natpryce.worktorule.issues.github;

import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertFalse;

public class GitHubIssuesTest {
    GitHubIssues issues = new GitHubIssues("npryce", "worktorule");

    @Test
    public void closedIssue() throws IOException {
        assertFalse(issues.isOpen("1"));
    }
}
@@ -137,16 +137,59 @@
 rtFalse;
+%0Aimport static org.junit.Assert.assertTrue;
 %0A%0Apublic
@@ -391,9 +391,116 @@
 ;%0A    %7D%0A
-%7D
+%0A    @Test%0A    public void openIssue() throws IOException %7B%0A        assertTrue(issues.isOpen(%222%22));%0A    %7D%0A%7D%0A

Test for open github issue