diff options
| author | Robert | 2017-04-19 11:13:33 +0200 |
|---|---|---|
| committer | Robert | 2017-04-19 11:13:33 +0200 |
| commit | 45da531345ce04ae388465d8bb5bb7a092a7b2e2 (patch) | |
| tree | 6db2ea28f7e242ea7149399825f40c4ba62ece4e | |
| parent | fd0d0aad7259faf1209392f054fa4767b0e3741a (diff) | |
| download | chouette-core-45da531345ce04ae388465d8bb5bb7a092a7b2e2.tar.bz2 | |
removed failing specs on removed user validation
| -rw-r--r-- | spec/models/user_spec.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 6925bb7e8..5c7aa0b98 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -124,22 +124,6 @@ describe User, :type => :model do end end - describe 'validations' do - it 'validates uniqueness of pemissions' do - user = build :user, permissions: Array.new(2, 'calendars.shared') - expect { - user.save! - }.to raise_error(ActiveRecord::RecordInvalid) - end - - it 'validates no pemission is an empty string' do - user = build :user, permissions: [''] - expect { - user.save! - }.to raise_error(ActiveRecord::RecordInvalid) - end - end - describe "#destroy" do let!(:organisation){create(:organisation)} let!(:user){create(:user, :organisation => organisation)} |
