require 'spec_helper'

describe Netsweet::SSO do

  Given(:id) { new_id }
  Given(:customer_attributes) do
    { external_id: id,
      email: gen_email,
      first_name: 'Alex',
      last_name: 'Burkhart',
      password: 'super_secret',
      password2: 'super_secret',
      give_access: true,
      access_role: '1017',
      is_person: true }.freeze
  end

  Given(:customer) { Netsweet::Customer.create(customer_attributes) }

  context 'map_sso' do
    Given(:sso) do
      Netsweet::SSO.map_sso(customer, customer_attributes[:password])
    end
    Then { expect(sso).to_not have_failed(Netsweet::MapSSOFailed) }
  end

end

require 'spec_helper'

describe Netsweet::SSO do

  Given(:id) { new_id }
  Given(:customer_attributes) do
    { external_id: id,
      email: gen_email,
      first_name: 'Alex',
      last_name: 'Burkhart',
      password: 'super_secret',
      password2: 'super_secret',
      give_access: true,
      access_role: '1017',
      is_person: true }.freeze
  end

  Given(:customer) { Netsweet::Customer.create(customer_attributes) }

  context 'map_sso' do
    Given(:sso) do
      Netsweet::SSO.map_sso(customer, customer_attributes[:password])
    end
    Then { expect(sso).to_not have_failed }
  end

end

Remove specific error class check when checking not failed
Remove specific error class check when checking not failed
