Skip to content

Ver todos carros disponíveis na tela inicial - #8

Open
campuscode-par01 wants to merge 5 commits into
masterfrom
feat/carros-disponiveis-home
Open

Ver todos carros disponíveis na tela inicial#8
campuscode-par01 wants to merge 5 commits into
masterfrom
feat/carros-disponiveis-home

Conversation

@campuscode-par01

Copy link
Copy Markdown
Collaborator

User Story:
Como usuário de uma filial,
Gostaria de ver os últimos 10 carros disponíveis na tela inicial,
Para ficar mais fácil a minha visualização dos carros disponíveis. 🚗

Feature adicional
Deve existir uma opção para ver todos os carros

Link da tarefa:
https://trello.com/c/KoyAnCRf/26-ver-todos-carros-dispon%C3%ADveis-na-tela-inicial

@campuscode-par01 campuscode-par01 changed the title Ver todos carros disponíveis na tela inicial wip: Ver todos carros disponíveis na tela inicial Aug 15, 2019
@campuscode-par01 campuscode-par01 changed the title wip: Ver todos carros disponíveis na tela inicial [wip:] Ver todos carros disponíveis na tela inicial Aug 15, 2019
@campuscode-par01 campuscode-par01 changed the title [wip:] Ver todos carros disponíveis na tela inicial [wip] Ver todos carros disponíveis na tela inicial Aug 15, 2019
@@ -1,13 +1,7 @@
<h1>Detalhes do Veículo</h1>
<dl>
<strong><dt>Modelo do Veículo</dt></strong>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me parece meio brusca essa mudança ^^
Acredito que outros testes vão quebrar nas demais branches, talvez fosse uma boa alinhar com todo time

@@ -0,0 +1 @@
<%= render @cars %> No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poderia ter um titulo nessa tela

@campuscode-par01 campuscode-par01 changed the title [wip] Ver todos carros disponíveis na tela inicial Ver todos carros disponíveis na tela inicial Aug 15, 2019
Comment thread spec/models/car_spec.rb
create_list(:car, 5, status: :available, car_model: create(:car_model, name: 'Palio'))
create_list(:car, 5, status: :on_maintenance, car_model: create(:car_model, name: 'Palio'))

cars = Car.last_available_cars

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falta nesse teste garantir que os carros devolvidos estao corretos. O teste só garante que temos 5 itens na lista.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants