spec/grape_entity/entity_spec.rb in grape-entity-0.8.0 vs spec/grape_entity/entity_spec.rb in grape-entity-0.8.1

- old
+ new

@@ -975,10 +975,10 @@ subject.expose(:id, :name, :phone, :mobile_phone) subject.expose(:user, using: user_entity) representation = subject.represent(OpenStruct.new(user: {}), - only: [:id, :name, :phone, user: %i[id name email]], + only: [:id, :name, :phone, { user: %i[id name email] }], except: [:phone, { user: [:id] }], serializable: true) expect(representation).to eq(id: nil, name: nil, user: { name: nil, email: nil }) end context 'specify attribute with exposure condition' do