Still learning Rspec as a whole, so thanks for patience.
Return value is this:
{ supermodel: { 'id': 1, 'name': 'J', 'model_attributes': [ {attr1: 'T', attrA: 1}, {attr2: 'F', attrB: 2}, {attr3: 'T', attrC: 3} ], } } Trying to get an expectation that says that a hash key named 'model_attributes' contains a value of an array that includes the following key value pairs - {attr2:F, attrB: 2} and {attr3: T, attrC: 3}.
Any insight would be welcome.
Result of method is this..is invalid Ruby object, double check it ;)'model_attributes': [ {attr1: T, attrA: 1}, {attr2: F, attrB: 2}, {attr3: T, attrC: 3} ]is not a valid object in Ruby. It looks almost like a hash, but it lacks braces and still would be invalid because ofT,F- these will throw anUninitialized constant T