Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-03-02 20:02:33 +0300
committerRobert Speicher <rspeicher@gmail.com>2017-03-06 22:41:10 +0300
commit23c2b8f6bb35d8a2af41c282ae02824e95c3fbd3 (patch)
treea2683fd329be8eb0d7a12b0481447423f4fb6682 /spec/models/appearance_spec.rb
parent5c41338fa30b5795309957c71202b11a71cccef0 (diff)
Add `has_many` associations for models that can have Upload records
Diffstat (limited to 'spec/models/appearance_spec.rb')
-rw-r--r--spec/models/appearance_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/appearance_spec.rb b/spec/models/appearance_spec.rb
index 0b72a2f979b..1060bf3cbf4 100644
--- a/spec/models/appearance_spec.rb
+++ b/spec/models/appearance_spec.rb
@@ -7,4 +7,6 @@ RSpec.describe Appearance, type: :model do
it { is_expected.to validate_presence_of(:title) }
it { is_expected.to validate_presence_of(:description) }
+
+ it { is_expected.to have_many(:uploads).dependent(:destroy) }
end