Sha256: 2a6dc38d9a9e63f67e3a043f60385adb7b1f1f1bd06144f8cb8cea527d1dfdd8
Contents?: true
Size: 811 Bytes
Versions: 5
Compression:
Stored size: 811 Bytes
Contents
require 'spec_helper' module Naf describe MachineRunnerInvocation do # Mass-assignment [:machine_runner_id, :pid, :dead_at, :wind_down_at, :commit_information, :branch_name, :repository_name, :deployment_tag].each do |a| it { should allow_mass_assignment_of(a) } end [:id, :created_at, :updated_at].each do |a| it { should_not allow_mass_assignment_of(a) } end #--------------------- # *** Associations *** #+++++++++++++++++++++ it { should belong_to(:machine_runner) } it { should have_many(:historical_jobs) } #-------------------- # *** Validations *** #++++++++++++++++++++ it { should validate_presence_of(:machine_runner_id) } it { should validate_presence_of(:pid) } end end
Version data entries
5 entries across 5 versions & 1 rubygems