-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed how the Operation handles the body Hash
replaced the options Hash with an Operation#body accessor, because endpoint and headers work this way and there will soon be a #header accessor.
- Loading branch information
Showing
14 changed files
with
155 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ | |
it 'creates an example request' do | ||
operation = client.operation(service_name, port_name, :VerifyEmail) | ||
|
||
expect(operation.example_request).to eq( | ||
expect(operation.example_body).to eq( | ||
VerifyEmail: { | ||
email: 'string', | ||
LicenseKey: 'string' | ||
|
@@ -54,14 +54,12 @@ | |
it 'builds a request' do | ||
operation = client.operation(service_name, port_name, :VerifyEmail) | ||
|
||
request = Nokogiri.XML operation.build( | ||
message: { | ||
VerifyEmail: { | ||
email: '[email protected]', | ||
LicenseKey: '?' | ||
} | ||
operation.body = { | ||
VerifyEmail: { | ||
email: '[email protected]', | ||
LicenseKey: '?' | ||
} | ||
) | ||
} | ||
|
||
expected = Nokogiri.XML(%{ | ||
<env:Envelope | ||
|
@@ -77,7 +75,8 @@ | |
</env:Envelope> | ||
}) | ||
|
||
expect(request).to be_equivalent_to(expected).respecting_element_order | ||
expect(Nokogiri.XML operation.build). | ||
to be_equivalent_to(expected).respecting_element_order | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.