diff options
| author | Robert | 2017-07-20 19:01:49 +0200 | 
|---|---|---|
| committer | Robert | 2017-07-20 19:01:49 +0200 | 
| commit | 4fffff70d5dc57929653ed1d1a1ce68e9769cee4 (patch) | |
| tree | 5bef175ac0e41776133535d264a68f1dbba40082 /spec/models/import_spec.rb | |
| parent | f8928e65d757414bde1c8a3b26c23b572f0e9221 (diff) | |
| download | chouette-core-4fffff70d5dc57929653ed1d1a1ce68e9769cee4.tar.bz2 | |
Refs: #3507@1h
Introduction of Presence Validation in Import model, for:
- workbench
- referential
Diffstat (limited to 'spec/models/import_spec.rb')
| -rw-r--r-- | spec/models/import_spec.rb | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb index 34bfb0b23..424936c58 100644 --- a/spec/models/import_spec.rb +++ b/spec/models/import_spec.rb @@ -1,11 +1,10 @@ -require 'rails_helper' -  RSpec.describe Import, :type => :model do +  subject{ build_stubbed :import }    it { should belong_to(:referential) }    it { should belong_to(:workbench) }    it { should belong_to(:parent).class_name(described_class.to_s) } -  it { should enumerize(:status).in(:new, :pending, :successful, :failed, :canceled, :running, :aborted ) } +  it { should enumerize(:status).in("aborted", "analyzing", "canceled", "downloading", "failed", "new", "pending", "running", "successful") }    it { should validate_presence_of(:file) }  end | 
