Sha256: d2b3af12e1b1477c4fce02b0c8a77e0d4b6ee2bb374c66da3849d33155974d47

Contents?: true

Size: 491 Bytes

Versions: 11

Compression:

Stored size: 491 Bytes

Contents

require 'rails_helper'

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

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

      it 'requires a valid status' do
        expect(build(:integration_pal_job, status: 'fake_status')).to_not be_valid
      end

      it 'is valid with all attributes' do
        expect(build(:integration_pal_job)).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/job_spec.rb
integration_pal-0.2.2 spec/models/integration_pal/job_spec.rb
integration_pal-0.2.1 spec/models/integration_pal/job_spec.rb
integration_pal-0.2.0 spec/models/integration_pal/job_spec.rb
integration_pal-0.1.6 spec/models/integration_pal/job_spec.rb
integration_pal-0.1.5 spec/models/integration_pal/job_spec.rb
integration_pal-0.1.4 spec/models/integration_pal/job_spec.rb
integration_pal-0.1.3 spec/models/integration_pal/job_spec.rb
integration_pal-0.1.2 spec/models/integration_pal/job_spec.rb
integration_pal-0.1.1 spec/models/integration_pal/job_spec.rb
integration_pal-0.1.0 spec/models/integration_pal/job_spec.rb