Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Commit

Permalink
unignored test
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Aug 28, 2017
1 parent 284c153 commit ff34535
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

import javax.json.Json;

import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mockito;
import org.slf4j.Logger;
Expand Down Expand Up @@ -71,11 +70,10 @@ public void stepsPerformOk() throws IOException {
* @throws Exception if something goes wrong.
*/
@Test
@Ignore
public void stepsFail() throws Exception {
Command com = this.mockCommand();
Logger logger = Mockito.mock(Logger.class);
Reply rep = new TextReply(com, "Error whene executig steps!");
Reply rep = new TextReply(com, "Error when executig steps!");
SendReply sr = new SendReply(
rep, Mockito.mock(Step.class)
);
Expand All @@ -89,7 +87,7 @@ public void stepsFail() throws Exception {

List<Comment> comments = Lists.newArrayList(com.issue().comments().iterate());
assertTrue(comments.size() == 1);
assertTrue(comments.get(0).json().getString("body").startsWith("> @charlesmike mock command\n\n@amihaiemil Some steps failed when processing your command. See [logs]"));
assertTrue(comments.get(0).json().getString("body").startsWith("> @charlesmike mock command\n\nError when executig steps!"));
}

/**
Expand Down

0 comments on commit ff34535

Please sign in to comment.