I am trying to learn to test drive the code using RSpec. For this I am creating an inventory management system.
Let the product
model has three attributes:
- sku_code
- name
- price
And the warehouse
model have four attributes:
- wh_code
- name
- pincode
- max_capacity
The application's root url will show the current list of products
and their counts in all warehouses
.
I have read that instead of model specs, I should write integration specs first.
So how should I start with writing specs for the homepage and proceed to the next steps?