Add spec for boards_endpoint instance variable

This commit is contained in:
Luke Bennett 2017-12-03 18:56:45 +00:00
parent 19dcb2da05
commit e63d73cfa0
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A

View file

@ -14,6 +14,12 @@ describe Projects::BoardsController do
expect { list_boards }.to change(project.boards, :count).by(1)
end
it 'sets boards_endpoint instance variable to a boards path' do
list_boards
expect(assigns(:boards_endpoint)).to eq project_boards_path(project)
end
context 'when format is HTML' do
it 'renders template' do
list_boards