Commit 4655335e authored by Maxime Orefice's avatar Maxime Orefice Committed by Dylan Griffith

Fix Ci::Minutes::AdditionalPack specs

parent 44609bdc
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Ci::Minutes::AdditionalPack do RSpec.describe Ci::Minutes::AdditionalPack, type: :model do
describe 'associations' do describe 'associations' do
it { is_expected.to belong_to(:namespace) } it { is_expected.to belong_to(:namespace) }
end end
describe 'validations' do describe 'validations' do
subject(:additional_pack) { build(:ci_minutes_additional_pack) } subject(:additional_pack) { create(:ci_minutes_additional_pack) }
it { is_expected.to validate_presence_of(:namespace) } it { is_expected.to validate_presence_of(:namespace) }
it { is_expected.to validate_presence_of(:number_of_minutes) } it { is_expected.to validate_presence_of(:number_of_minutes) }
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
- "./ee/spec/mailers/notify_spec.rb" - "./ee/spec/mailers/notify_spec.rb"
- "./ee/spec/models/ci/bridge_spec.rb" - "./ee/spec/models/ci/bridge_spec.rb"
- "./ee/spec/models/ci/build_spec.rb" - "./ee/spec/models/ci/build_spec.rb"
- "./ee/spec/models/ci/minutes/additional_pack_spec.rb"
- "./ee/spec/models/ee/ci/job_artifact_spec.rb" - "./ee/spec/models/ee/ci/job_artifact_spec.rb"
- "./ee/spec/models/group_member_spec.rb" - "./ee/spec/models/group_member_spec.rb"
- "./ee/spec/replicators/geo/pipeline_artifact_replicator_spec.rb" - "./ee/spec/replicators/geo/pipeline_artifact_replicator_spec.rb"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment