Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save theonlyrao/200ceb415ef66c212824d83056cd3d2d to your computer and use it in GitHub Desktop.
Save theonlyrao/200ceb415ef66c212824d83056cd3d2d to your computer and use it in GitHub Desktop.
Testing Homework

Testing Homework - Rails/JS

  • Your experience implementing

I tried both unit using Jasmine-Rails and feature testing using Capybara.

  • Were you successful?

I was not successful in implementing Jasmine-Rails, but I was successful impelemting feature testing using Capybara. The feature testing is nice in that it lets me confirm what a user is setting, but it would have been good to have spies set up through Jasmine-Rails so that I can confirm that the ajax calls are actually hitting the correct route with the correct data.

  • Links to commits on Github or copy and pasted code snippits of a test

Feature Test in IdeaBox

I created a branch for the attempt at Jasmine-Rails but since I was not able to get the test spec I wrote to run, I never commited it. The test itself doesn't actually even test any functionality - just the setup.

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