Skip to content

Conversation

@morrime
Copy link

@morrime morrime commented Oct 26, 2016

Parts of this were very frustrating and difficult for me. I kept getting localhost timeouts because of a redirect loop and I wanted to pull my hair out. Also, my unit tests are all giving errors (something to the tune of: ActiveRecord::StatementInvalid: ActiveRecord::StatementInvalid: SQLite3::ConstraintException: NOT NULL constraint failed: users.uid: INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-10-26 05:45:37', '2016-10-26 05:45:37', 980190962)), but I am very tired and this assignment is already late, so I'm ignoring it. As far as I know, everything else is functioning properly. But of course, you can't really know anything is working properly unless you test it. I think this would have been much easier to do had I not been working on Betsy in between. I did the first wave without incident and finished during the first hour of class, but coming back to it a week later to do the other 2 waves did not work very well for me. I should have squeezed in more time during the school week when it was still fresh in my mind, instead of dedicating all class and HW time to Betsy. I've been working on controller testing for Betsy, so I feel confident in that regard, and tomorrow I plan on doing the Betsy unit testing. So hopefully that will go better than this unit testing. drops the mic

…w in controller, populated new.html.erb with labels and data types and submit.
…lso populated create.html.erb, but that isn't really relevant
…'s for edit, delete, and create new task in index.html.erb
… set if complete button is clicked. Time doesn't reset if button is unclicked.
…ate, login, show, and logout. Also, private application controller actions logged_in? and current_user
…ods: current_user and require_login. To session controller: added skip_before_action of require_login for create action to avoid a million redirects
…examples until now, it finally works. UGHHH. Still need testing
…e3::ConstraintException etc. Using yaml files would probably help, but I am tired, this is already late for a PR, and as far as I know, everything else it working. Fin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants