blob: 34bfb0b2330e25900230932a57fc52566c8a9246 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require 'rails_helper'
RSpec.describe Import, :type => :model do
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 validate_presence_of(:file) }
end
|