diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-06 06:09:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-06 06:09:38 +0300 |
commit | ac5d39c2c47fbf5e32cd51eae2cfa450d16b6127 (patch) | |
tree | 68556b728aeb9982b36b82857964187c1247a954 /spec/serializers/board_simple_entity_spec.rb | |
parent | 28c133103f56f50f3f3de1ecd8e567d8e3ad31cb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/board_simple_entity_spec.rb')
-rw-r--r-- | spec/serializers/board_simple_entity_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/serializers/board_simple_entity_spec.rb b/spec/serializers/board_simple_entity_spec.rb new file mode 100644 index 00000000000..c5ab9833adf --- /dev/null +++ b/spec/serializers/board_simple_entity_spec.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe BoardSimpleEntity do + let_it_be(:project) { create(:project) } + let_it_be(:board) { create(:board, project: project) } + + subject { described_class.new(board).as_json } + + describe '#name' do + it 'has `name` attribute' do + is_expected.to include(:name) + end + end +end |