Sha256: ddbe0300d459926d427449f4581522b2c5b4fd891807165205f9c037dde8567b

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

require 'rails_helper'

module IntegrationPal
  RSpec.describe Task, type: :model do
    describe 'validations' do
      it 'requires a worker' do
        expect(build(:integration_pal_task, job: nil)).to_not be_valid
      end

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

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

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
integration_pal-0.2.3 spec/models/integration_pal/task_spec.rb
integration_pal-0.2.2 spec/models/integration_pal/task_spec.rb
integration_pal-0.2.1 spec/models/integration_pal/task_spec.rb
integration_pal-0.2.0 spec/models/integration_pal/task_spec.rb
integration_pal-0.1.6 spec/models/integration_pal/task_spec.rb