diff options
| author | vlatka pavisic | 2016-11-09 17:18:53 +0100 | 
|---|---|---|
| committer | vlatka pavisic | 2016-11-09 17:19:00 +0100 | 
| commit | d2cf8812a285e3ff1b59b4f431411cb4faf28483 (patch) | |
| tree | 6af133c3b571c1adbd33e3badcf9e5bef5a5407b /spec/models/organisation_spec.rb | |
| parent | 721532c9fb90ea55851dff8d51bfa29dd3209c4c (diff) | |
| download | chouette-core-d2cf8812a285e3ff1b59b4f431411cb4faf28483.tar.bz2 | |
Refs #1927 : Organisation#code uniqueness
Diffstat (limited to 'spec/models/organisation_spec.rb')
| -rw-r--r-- | spec/models/organisation_spec.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb index 823ee7ea6..5cf2ded01 100644 --- a/spec/models/organisation_spec.rb +++ b/spec/models/organisation_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper'  describe Organisation, :type => :model do    it { should validate_presence_of(:name) } -  it { should validate_uniqueness_of(:name) } +  it { should validate_uniqueness_of(:code) }    it 'should have a valid factory' do      expect(FactoryGirl.build(:organisation)).to be_valid  | 
