Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index view is tested without utilizing controller #26

Open
thecodepixi opened this issue Jan 7, 2020 · 0 comments
Open

Index view is tested without utilizing controller #26

thecodepixi opened this issue Jan 7, 2020 · 0 comments

Comments

@thecodepixi
Copy link

The passing test for this lab requires that you access your session from inside of the view file without the use of a carrying instance variable, negating the process of writing a helper method to access and update the session. The problem is that the test itself (in "products_index_spec") simply sets the session and renders the view without ever utilizing the controller. Additionally, the test in the "products_index_spec" file is redundant, because the "cart_spec" has already tested for whether the item is rendered to the page upon submission.

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

No branches or pull requests

1 participant