spec/unit/action_spec.rb in siren_client-1.0.1 vs spec/unit/action_spec.rb in siren_client-1.0.2

- old
+ new

@@ -35,9 +35,12 @@ end describe '.payload' do it 'is a hash' do expect(action.payload).to be_a Hash end + it 'is NOT overwritten with SirenClient::Field classes' do + expect(action.payload['fields'][0]).to be_a Hash + end end describe '.name' do it 'is a string' do expect(action.name).to be_a String end