icelab / rails-skeleton

Application prototype for Raygun. Starter skeleton for @icelab Rails projects.
3 stars 5 forks source link

Add Jasmine tests #3

Open timriley opened 10 years ago

timriley commented 10 years ago

And an example test.

We can pull this across from raygun-rails, which has a good setup.

timriley commented 10 years ago

@makenosound @chrisbuttery I'd be interested to know your opinions on JS testing. Is Jasmine what we should be using? I'd like to get a base JS testing structure into the Rails skeleton so that it's easy to get started.

chrisbuttery commented 10 years ago

They essentially do the same thing.

My preference is with Mocha purely because that's what I'm used to. Alongside Mocha I use the Chai.js assertion library, and for spies I will also use Sinon.js.

As far as I understand Jasmine has both of these functionalities built in.

If you guys have more experience with Jasmine, I can roll with that.