aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/import_spec.rb
blob: 88d339ea04b7cd90ba82f7ae33fcfb0a859072d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
RSpec.describe Import, :type => :model do

  it { should belong_to(:referential) }
  it { should belong_to(:workbench) }
  it { should belong_to(:parent) }

  it { should enumerize(:status).in("aborted", "canceled", "failed", "new", "pending", "running", "successful") }

  it { should validate_presence_of(:file) }
  it { should validate_presence_of(:referential) }
  it { should validate_presence_of(:workbench) }
end