Commit 36a26e78 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Adjust board controller specs

parent 847eda33
......@@ -63,8 +63,12 @@ describe Projects::BoardsController do
it 'valid board is created' do
create_board create_params
board = Board.first
expect(Board.count).to eq(1)
expect(Board.first).to have_attributes(create_params)
expect(board).to have_attributes(create_params.except(:assignee_id))
expect(board.assignee).to eq(user)
end
end
......
......@@ -7,6 +7,7 @@
"properties" : {
"id": { "type": "integer" },
"name": { "type": "string" },
"board_path": { "type": ["string", "null"] },
"milestone": {
"type": ["object", "null"],
"required": [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment