diff options
| author | Edouard Maffert | 2016-05-12 17:14:18 +0200 | 
|---|---|---|
| committer | Edouard Maffert | 2016-05-12 17:14:18 +0200 | 
| commit | 020cf3b06409acae569c23636ee91085fbeb5699 (patch) | |
| tree | a93afd432db99174c8f10c33edb22226cca2c084 /spec/models/organisation_spec.rb | |
| parent | 972bbcb308d360c5468cd629dc5cdf356d556a2e (diff) | |
| download | chouette-core-020cf3b06409acae569c23636ee91085fbeb5699.tar.bz2 | |
add offer workbench model #827
Diffstat (limited to 'spec/models/organisation_spec.rb')
| -rw-r--r-- | spec/models/organisation_spec.rb | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb index 66b1e8534..fb9d3629b 100644 --- a/spec/models/organisation_spec.rb +++ b/spec/models/organisation_spec.rb @@ -2,8 +2,12 @@ require 'spec_helper'  describe Organisation do -  #it { should validate_presence_of(:name) } -  #it { should validate_uniqueness_of(:name) } +  it { should validate_presence_of(:name) } +  it { should validate_uniqueness_of(:name) } + +  it 'should have a valid factory' do +    expect(FactoryGirl.build(:organisation)).to be_valid +  end    it "create a rule_parameter_set" do      organisation = create(:organisation)  | 
