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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-06 06:09:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-06 06:09:38 +0300
commitac5d39c2c47fbf5e32cd51eae2cfa450d16b6127 (patch)
tree68556b728aeb9982b36b82857964187c1247a954 /spec/serializers/board_simple_entity_spec.rb
parent28c133103f56f50f3f3de1ecd8e567d8e3ad31cb (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.rb16
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