Sha256: 71bd681601a3514824907fcc3a855bb79218d0507c72e59a492399283d0615ba

Contents?: true

Size: 540 Bytes

Versions: 13

Compression:

Stored size: 540 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
naf-2.1.13 spec/models/naf/run_interval_style_spec.rb
naf-2.1.12 spec/models/naf/run_interval_style_spec.rb
naf-2.1.11 spec/models/naf/run_interval_style_spec.rb
naf-2.1.10 spec/models/naf/run_interval_style_spec.rb
naf-2.1.9 spec/models/naf/run_interval_style_spec.rb
naf-2.1.8 spec/models/naf/run_interval_style_spec.rb
naf-2.1.6 spec/models/naf/run_interval_style_spec.rb
naf-2.1.5 spec/models/naf/run_interval_style_spec.rb
naf-2.1.4 spec/models/naf/run_interval_style_spec.rb
naf-2.1.3 spec/models/naf/run_interval_style_spec.rb
naf-2.1.2 spec/models/naf/run_interval_style_spec.rb
naf-2.1.1 spec/models/naf/run_interval_style_spec.rb
naf-2.1.0 spec/models/naf/run_interval_style_spec.rb