require 'spec_helper' module Naf describe RunIntervalStyle do # Mass-assignment [:name].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 have_many(:application_schedules) } #-------------------- # *** Validations *** #++++++++++++++++++++ it { should validate_presence_of(:name) } end end