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