aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/import_spec.rb
blob: 424936c581141246a6fa6e34d9d3edb9842cdaa8 (plain)
1
2
3
4
5
6
7
8
9
10
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("aborted", "analyzing", "canceled", "downloading", "failed", "new", "pending", "running", "successful") }

  it { should validate_presence_of(:file) }
end