debian-mirror-gitlab/spec/serializers/board_simple_entity_spec.rb
2021-02-22 17:27:13 +05:30

16 lines
350 B
Ruby

# 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