debian-mirror-gitlab/spec/models/airflow/dags_spec.rb
2023-04-23 21:23:45 +05:30

17 lines
564 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Airflow::Dags, feature_category: :dataops do
describe 'associations' do
it { is_expected.to belong_to(:project) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_presence_of(:dag_name) }
it { is_expected.to validate_length_of(:dag_name).is_at_most(255) }
it { is_expected.to validate_length_of(:schedule).is_at_most(255) }
it { is_expected.to validate_length_of(:fileloc).is_at_most(255) }
end
end