Sha256: 434f3e1842487eb766bb57afb485211cd59743a20f0d735707b13be139f94f85

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

describe PUNK::CreateIdentitiesService do
  before do
    create(:user, phone: nil)
    create(:user, email: nil)
  end

  it 'creates identities for users that are missing them' do
    expect(PUNK::Identity.count).to eq(0)
    described_class.run
    expect(PUNK::Identity.count).to eq(2)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
punk-0.3.6 spec/services/punk/create_identities_service_spec.rb
punk-0.3.5 spec/services/punk/create_identities_service_spec.rb
punk-0.3.4 spec/services/punk/create_identities_service_spec.rb
punk-0.3.3 spec/services/punk/create_identities_service_spec.rb
punk-0.3.2 spec/services/punk/create_identities_service_spec.rb
punk-0.3.1 spec/services/punk/create_identities_service_spec.rb
punk-0.2.0 spec/services/punk/create_identities_service_spec.rb