Sha256: c38f37996c44b975f03160846886103606b234a8fe8e50e65ca4f189f5199046

Contents?: true

Size: 959 Bytes

Versions: 11

Compression:

Stored size: 959 Bytes

Contents

require 'spec_helper'

describe Qualtrics::PanelImport, :vcr => true  do
  it 'has a panel' do
    panel = Qualtrics::Panel.new

    panel_import = Qualtrics::PanelImport.new({
      panel: panel
    })
    expect(panel_import.panel).to eql(panel)
  end

  it 'has a list of recipients' do
    recipients = [Qualtrics::Recipient.new, Qualtrics::Recipient.new]

    panel_import = Qualtrics::PanelImport.new({
      recipients: recipients
    })
    expect(panel_import.recipients).to eql(recipients)
  end

  it 'transmits to qualtrics' do
    panel = Qualtrics::Panel.new({
      name: 'Newest Panel',
      category: 'Great Category'
    })

    recipients = [
      Qualtrics::Recipient.new(
        email: 'example@example.com',
        first_name: 'John',
        last_name: 'Smith'
      )
    ]

    panel_import = Qualtrics::PanelImport.new({
      recipients: recipients,
      panel: panel
    })

    expect(panel_import.save).to be true
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
qualtrics-0.6.1 spec/qualtrics/panel_import_spec.rb
qualtrics-0.6.0 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.9b spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.9 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.8 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.7 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.6 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.5 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.4 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.3 spec/qualtrics/panel_import_spec.rb
qualtrics-0.5.2 spec/qualtrics/panel_import_spec.rb