debian-mirror-gitlab/spec/controllers/concerns/boards_responses_spec.rb
2019-09-04 21:01:54 +05:30

23 lines
450 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe BoardsResponses do
let(:controller_class) do
Class.new do
include BoardsResponses
end
end
subject(:controller) { controller_class.new }
describe '#serialize_as_json' do
let!(:board) { create(:board) }
it 'serializes properly' do
expected = { "id" => board.id }
expect(subject.serialize_as_json(board)).to include(expected)
end
end
end