spec/models/naf/application_spec.rb in naf-2.0.4 vs spec/models/naf/application_spec.rb in naf-2.1.0
- old
+ new
@@ -8,12 +8,12 @@
:command,
:application_type_id,
:log_level,
:short_name,
:deleted,
- :application_schedule,
- :application_schedule_attributes].each do |a|
+ :application_schedules,
+ :application_schedules_attributes].each do |a|
it { should allow_mass_assignment_of(a) }
end
[:id,
:created_at,
@@ -24,10 +24,10 @@
#---------------------
# *** Associations ***
#+++++++++++++++++++++
it { should belong_to(:application_type) }
- it { should have_one(:application_schedule) }
+ it { should have_many(:application_schedules) }
it { should have_many(:historical_jobs) }
#--------------------
# *** Validations ***
#++++++++++++++++++++