Skip to content

Commit

Permalink
Fixed incorrect calls in some of the Screenplay REST interaction classes
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Nov 20, 2018
1 parent e369a79 commit 07c842e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public Head(String resource) {
@Step("{0} executes a PUT on the resource #resource")
@Override
public <T extends Actor> void performAs(T actor) {
rest().patch(as(actor).resolve(resource));
rest().head(as(actor).resolve(resource));
}

public static Head to(String resource) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public Options(String resource) {
@Step("{0} executes a PUT on the resource #resource")
@Override
public <T extends Actor> void performAs(T actor) {
rest().patch(as(actor).resolve(resource));
rest().options(as(actor).resolve(resource));
}

public static Options to(String resource) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public Patch(String resource) {
@Step("{0} executes a PUT on the resource #resource")
@Override
public <T extends Actor> void performAs(T actor) {
rest().options(as(actor).resolve(resource));
rest().patch(as(actor).resolve(resource));
}

public static Patch to(String resource) {
Expand Down

0 comments on commit 07c842e

Please sign in to comment.