|
649 | 649 | updated_activity = @client.activity_partial_update( |
650 | 650 | id: activity_a['id'], |
651 | 651 | set: { |
652 | | - "product.name": 'boots', |
653 | | - "product.price": 7.99, |
| 652 | + 'product.name': 'boots', |
| 653 | + 'product.price': 7.99, |
654 | 654 | popularity: 1000, |
655 | 655 | foo: { bar: { baz: 'qux' } } |
656 | 656 | }, |
|
677 | 677 | foreign_id: activity_a['foreign_id'], |
678 | 678 | time: activity_a['time'], |
679 | 679 | set: { |
680 | | - "foo.bar.baz": 42, |
| 680 | + 'foo.bar.baz': 42, |
681 | 681 | popularity: 9000 |
682 | 682 | }, |
683 | 683 | unset: [ |
|
701 | 701 | { |
702 | 702 | id: activity_a['id'], |
703 | 703 | set: { |
704 | | - "product.name": 'boots', |
705 | | - "product.price": 13.99, |
| 704 | + 'product.name': 'boots', |
| 705 | + 'product.price': 13.99, |
706 | 706 | extra: 'left' |
707 | 707 | }, |
708 | 708 | unset: ['foo'] |
709 | 709 | }, |
710 | 710 | { |
711 | 711 | id: activity_b['id'], |
712 | 712 | set: { |
713 | | - "product.price": 23.99, |
| 713 | + 'product.price': 23.99, |
714 | 714 | extra: 'right' |
715 | 715 | }, |
716 | 716 | unset: ['popularity'] |
|
740 | 740 | foreign_id: activity_a['foreign_id'], |
741 | 741 | time: activity_a['time'], |
742 | 742 | set: { |
743 | | - "product.name": 'trainers', |
744 | | - "product.price": 133.99 |
| 743 | + 'product.name': 'trainers', |
| 744 | + 'product.price': 133.99 |
745 | 745 | }, |
746 | 746 | unset: ['extra'] |
747 | 747 | }, |
748 | 748 | { |
749 | 749 | foreign_id: activity_b['foreign_id'], |
750 | 750 | time: activity_b['time'], |
751 | 751 | set: { |
752 | | - "product.price": 3.99 |
| 752 | + 'product.price': 3.99 |
753 | 753 | }, |
754 | 754 | unset: ['extra'] |
755 | 755 | } |
|
893 | 893 | expect(response['activity']).to eq @activity |
894 | 894 | end |
895 | 895 | example 'with target feeds' do |
896 | | - reaction = @client.reactions.add('like', @activity['id'], 'juan', target_feeds: [@feed43.id]) |
| 896 | + reaction = @client.reactions.add('like', @activity['id'], 'juan', target_feeds: [@feed43.id], target_feeds_extra_data: { test: 'test_data' }) |
897 | 897 | reaction.delete('duration') |
898 | 898 | response = @feed43.get |
899 | 899 |
|
900 | 900 | expect(response['results'][0]['reaction']).to eq @client.reactions.create_reference(reaction) |
901 | 901 | expect(response['results'][0]['verb']).to eq 'like' |
| 902 | + expect(response['results'][0]['test']).to eq 'test_data' |
902 | 903 | end |
903 | 904 | end |
904 | 905 |
|
|
0 commit comments