aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/referential_spec.rb
blob: 5ea88ad20ea54e74d361afb33c283063f217b3f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'

describe Referential do

  it { should validate_presence_of(:name) }
  it { should validate_presence_of(:slug) }
  it { should validate_presence_of(:prefix) }
  it { should validate_presence_of(:time_zone) }

  it "create a rule_parameter_set" do
    referential = Factory.create(:referential)
    referential.rule_parameter_sets.size.should == 1
  end
end