Sha256: 5f0d668ba428b1d200039be76d0d5c68e55c32cc13ba8ce39cd7ea301325e0ca

Contents?: true

Size: 525 Bytes

Versions: 23

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

module Naf
  describe HistoricalJobPrerequisite do

    # Mass-assignment
    [:historical_job_id,
     :prerequisite_historical_job_id].each do |a|
      it { should allow_mass_assignment_of(a) }
    end

    [:id,
     :created_at].each do |a|
      it { should_not allow_mass_assignment_of(a) }
    end

    #---------------------
    # *** Associations ***
    #+++++++++++++++++++++

    it { should belong_to(:historical_job) }
    it { should belong_to(:prerequisite_historical_job) }

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-2.1.13 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.12 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.11 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.10 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.9 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.8 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.6 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.5 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.4 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.3 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.2 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.1 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.1.0 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.0.4 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.0.3 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.0.2 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.0.1 spec/models/naf/historical_job_prerequisite_spec.rb
naf-2.0.0 spec/models/naf/historical_job_prerequisite_spec.rb
naf-1.1.4 spec/models/naf/historical_job_prerequisite_spec.rb
naf-1.1.3 spec/models/naf/historical_job_prerequisite_spec.rb