Sha256: db17631a933009533edef44c8aa7b58de2840c00620b2649b947ac2365cb7803

Contents?: true

Size: 729 Bytes

Versions: 11

Compression:

Stored size: 729 Bytes

Contents

require 'rails_helper'

module IntegrationPal
  RSpec.describe Worker, type: :model do

    describe 'validations' do
      it 'requires a name' do
        expect(build(:integration_pal_worker, name: nil)).to_not be_valid
      end

      it 'requires a access_id' do
        expect(build(:integration_pal_worker, access_id: nil)).to_not be_valid
      end

      it 'requires a name' do
        expect(build(:integration_pal_worker, secret_key: nil)).to_not be_valid
      end

      it 'requires a name' do
        expect(build(:integration_pal_worker, job_type: nil)).to_not be_valid
      end

      it 'is valid with all attributes' do
        expect(build(:integration_pal_worker)).to be_valid
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
integration_pal-0.2.3 spec/models/integration_pal/worker_spec.rb
integration_pal-0.2.2 spec/models/integration_pal/worker_spec.rb
integration_pal-0.2.1 spec/models/integration_pal/worker_spec.rb
integration_pal-0.2.0 spec/models/integration_pal/worker_spec.rb
integration_pal-0.1.6 spec/models/integration_pal/worker_spec.rb
integration_pal-0.1.5 spec/models/integration_pal/worker_spec.rb
integration_pal-0.1.4 spec/models/integration_pal/worker_spec.rb
integration_pal-0.1.3 spec/models/integration_pal/worker_spec.rb
integration_pal-0.1.2 spec/models/integration_pal/worker_spec.rb
integration_pal-0.1.1 spec/models/integration_pal/worker_spec.rb
integration_pal-0.1.0 spec/models/integration_pal/worker_spec.rb