Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Add colon to "Then the response should be equal to" step
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Mar 11, 2018
1 parent 3e683cd commit b9fcd3b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion i18n/en.xliff.dist
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
<target></target>
</trans-unit>
<trans-unit id="the-response-should-be-equal-to">
<source>the response should be equal to</source>
<source>the response should be equal to:</source>
<target></target>
</trans-unit>
<trans-unit id="the-response-should-be-empty">
Expand Down
2 changes: 1 addition & 1 deletion i18n/ja.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
<target><![CDATA[/^レスポンスが空であること$/u]]></target>
</trans-unit>
<trans-unit id="the-response-should-be-equal-to">
<source><![CDATA[the response should be equal to]]></source>
<source><![CDATA[the response should be equal to:]]></source>
<target><![CDATA[/^レスポンスが下記と一致すること:$/u]]></target>
</trans-unit>
<trans-unit id="the-header-should-be-equal-to">
Expand Down
2 changes: 1 addition & 1 deletion i18n/ru.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
<target>я отправляю :method запрос на :url с телом:</target>
</trans-unit>
<trans-unit id="the-response-should-be-equal-to">
<source>the response should be equal to</source>
<source>the response should be equal to:</source>
<target>ответ должен быть</target>
</trans-unit>
<trans-unit id="the-response-should-be-empty">
Expand Down
1 change: 1 addition & 0 deletions src/Context/RestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function iSendARequestToWithBody($method, $url, PyStringNode $body)
* Checks, whether the response content is equal to given text
*
* @Then the response should be equal to
* @Then the response should be equal to:
*/
public function theResponseShouldBeEqualTo(PyStringNode $expected)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/features/rest.feature
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Feature: Testing RESTContext

Scenario: Response body
Given I send a GET request to "/"
Then the response should be equal to
Then the response should be equal to:
"""
Congratulations, you've correctly set up your apache environment.
"""
Expand Down

0 comments on commit b9fcd3b

Please sign in to comment.