Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Jbern16/32a6a98744929bdce30d4b7fc82fecd3 to your computer and use it in GitHub Desktop.
Save Jbern16/32a6a98744929bdce30d4b7fc82fecd3 to your computer and use it in GitHub Desktop.
Testing Homework

Testing Homework - Rails/JS

  • Choose one of the following tracks:
  • Skim/Read through the associated links
  • Attempt to hook up and implement unit or feature js tests in your IdeaBox or this sample idea-bin project
  • Fork this gist
  • Respond with:
    • Your experience implementing
    • Were you successful?
    • Links to commits on Github or copy and pasted code snippits of a test
@Jbern16
Copy link
Author

Jbern16 commented Jul 5, 2016

https://github.com/Jbern16/ideabox/tree/master/spec/features

I implemented multiple features on my idea-box. Through trial and error, I was successful, for the most part. By combining wait_for_ajax and DB cleaner, I was able to successfully reflect upon DB changes in my test.

However, I did have a few problems with some tests. For one, I was not able to implement upvote, anytime I clicked upvote, it would get downvoted. I could not figure this bug out, but after learning about bubbling, I think that could be the problem.

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