spec/qualtrics/panel_spec.rb in qualtrics-0.6.0 vs spec/qualtrics/panel_spec.rb in qualtrics-0.6.1
- old
+ new
@@ -75,6 +75,18 @@
it 'retrieves an array of all panels in a library' do
panel.save
expect(Qualtrics::Panel.all.map{|p| p.id}).to include(panel.id)
end
+
+ context 'updating in qualtrics' do
+ it 'adds recipients to an existing panel' do
+ panel.save
+ expect(panel.persisted?).to be true
+ recipients = [
+ Qualtrics::Recipient.new(email: 'example@example.com', first_name: 'New', last_name: 'Person'),
+ Qualtrics::Recipient.new(email: 'example@example.com', first_name: 'Another', last_name: 'NewPerson')
+ ]
+ expect(panel.add_recipients(recipients)).to be true
+ end
+ end
end