diff options
Diffstat (limited to 'spec/migrations/20220819153725_add_vulnerability_advisory_foreign_key_to_sbom_vulnerable_component_versions_spec.rb')
-rw-r--r-- | spec/migrations/20220819153725_add_vulnerability_advisory_foreign_key_to_sbom_vulnerable_component_versions_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/migrations/20220819153725_add_vulnerability_advisory_foreign_key_to_sbom_vulnerable_component_versions_spec.rb b/spec/migrations/20220819153725_add_vulnerability_advisory_foreign_key_to_sbom_vulnerable_component_versions_spec.rb deleted file mode 100644 index 1d18862c8ee..00000000000 --- a/spec/migrations/20220819153725_add_vulnerability_advisory_foreign_key_to_sbom_vulnerable_component_versions_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" - -require_migration! - -RSpec.describe AddVulnerabilityAdvisoryForeignKeyToSbomVulnerableComponentVersions, - feature_category: :dependency_management do - let(:table) { described_class::SOURCE_TABLE } - let(:column) { described_class::COLUMN } - let(:foreign_key) { -> { described_class.new.foreign_keys_for(table, column).first } } - - it "creates and drops the foreign key" do - reversible_migration do |migration| - migration.before -> do - expect(foreign_key.call).to be(nil) - end - - migration.after -> do - expect(foreign_key.call).to have_attributes(column: column.to_s) - end - end - end -end |