spec/resource_mockery_spec.rb in frenetic-2.0.0 vs spec/resource_mockery_spec.rb in frenetic-3.0.0
- old
+ new
@@ -9,34 +9,34 @@
let(:my_mocked_resource) do
Class.new(my_temp_resource) do
def self.default_attributes
{
- id: 1,
- price: 0.0,
- qux: 'qux',
- _embedded: {
- embedded_resource: {
- plugh: 'xyzzy'
+ 'id' => 1,
+ 'price' => 0.0,
+ 'qux' => 'qux',
+ '_embedded' => {
+ 'embedded_resource' => {
+ 'plugh' => 'xyzzy'
}
}
}
end
end
end
let(:params) do
{
- id: '1',
- foo: 'bar',
- price: '0.0',
- bar: 'baz',
+ 'id' => '1',
+ 'foo' => 'bar',
+ 'price' => '0.0',
+ 'bar' => 'baz',
_embedded: {
- embedded_resource: {
- grault: 'garply'
+ 'embedded_resource' => {
+ 'grault' => 'garply'
},
- another_resource: {
- waldo: 'fred'
+ 'another_resource' => {
+ 'waldo' => 'fred'
}
}
}
end