Sha256: 6ebe1ba16c884162dbb72b17e2ea17a167a819b5dc531965aff995d381782749

Contents?: true

Size: 551 Bytes

Versions: 8

Compression:

Stored size: 551 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe ReJobAudit do
  def valid_attributes
    {
      :audit_date => Date.new,
      :audit_code => ReJobAudit::AUDIT_INFO,
    }
  end
  
  it "should be valid with valid attributes" do
    ReJobAudit.new(valid_attributes).should be_valid
  end
  
  should_belong_to :re_job
  should_belong_to :re_pipeline
  should_belong_to :re_rule
  
  should_validate_presence_of :audit_date
  should_validate_presence_of :audit_code
  # should_validate_presence_of :audit_success
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rules_engine-0.1.1 rails_generators/templates/spec/models/re_job_audit_spec.rb
rules_engine-0.1.0 rails_generators/templates/spec/models/re_job_audit_spec.rb
rules_engine-0.0.8 rails_generators/templates/spec/models/re_job_audit_spec.rb
rules_engine-0.0.7 rails_generators/templates/spec/models/re_job_audit_spec.rb
rules_engine-0.0.6 rails_generators/templates/spec/models/re_job_audit_spec.rb
rules_engine-0.0.5 rails_generators/templates/spec/models/re_job_audit_spec.rb
rules_engine-0.0.4 rails_generators/templates/spec/models/re_job_audit_spec.rb
rules_engine-0.0.3 rails_generators/templates/spec/models/re_job_audit_spec.rb