spec/soap/perform_spec.rb in fuelsdk-0.1.6 vs spec/soap/perform_spec.rb in fuelsdk-0.1.7
- old
+ new
@@ -12,30 +12,30 @@
describe '#create_action_message' do
it 'returns message' do
expect(subject.create_action_message('Definitions', 'QueryDefinition', [{'ObjectID' => 1}], 'start'))
.to eq(
{
- 'Action' => 'start',
+ 'Action' => 'start',
'Definitions' => {
- 'Definition' => [{'ObjectID' => 1}],
- :attributes! => {
- 'Definition' => { 'xsi:type' => 'tns:QueryDefinition'}
- }
+ 'Definition' => [{
+ 'ObjectID' => 1,
+ '@xsi:type' => 'tns:QueryDefinition'
+ }]
}
}
)
end
it 'standardizes properties to an array' do
expect(subject.create_action_message('Definitions', 'QueryDefinition', {'ObjectID' => 1}, 'start'))
.to eq(
{
- 'Action' => 'start',
+ 'Action' => 'start',
'Definitions' => {
- 'Definition' => [{'ObjectID' => 1}],
- :attributes! => {
- 'Definition' => { 'xsi:type' => 'tns:QueryDefinition'}
- }
+ 'Definition' => [{
+ 'ObjectID' => 1,
+ '@xsi:type' => 'tns:QueryDefinition'
+ }]
}
}
)
end
end