blob: c812b2b211d1ee28d1ac01cee94d6bad45a15eff (
plain)
| 1
2
3
4
5
6
7
8
9
10
 | RSpec.describe Export::Workgroup, type: [:model, :with_commit] do
  it { should validate_presence_of(:duration) }
  it "should set options" do
    expect(Export::Workgroup.options).to have_key :duration
    expect(Export::Workgroup.options[:duration][:required]).to be_truthy
    expect(Export::Workgroup.options[:duration][:default_value]).to eq 90
    expect(Export::Workgroup.options[:duration][:type]).to eq :integer
  end
end
 |