gitlab-org--gitlab-foss/spec/models/project_snippet_spec.rb
Rémy Coutable d900f19dfa
Enable the RSpec/EmptyExampleGroup cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-18 18:25:50 +02:00

11 lines
240 B
Ruby

require 'spec_helper'
describe ProjectSnippet, models: true do
describe "Associations" do
it { is_expected.to belong_to(:project) }
end
describe "Validation" do
it { is_expected.to validate_presence_of(:project) }
end
end