Date: 2/3/12
Time: 4 Hours
Summary:
Dave and Walter setup Jasmine with jQuery on Rails 3.1, which runs the asset pipeline. Setup and example spec ran, but Jasmine needed configuration for finding correct location of JS files. Added Jasmine-jQuery plugin for bringing in jQuery matchers.
Challenge:
Configuring Jasmine on jQuery and Rails 3.1 asset pipeline.
Solution:
Break down example spec and load dummy spec from existing ones to find correct route in Jasmine.yml file. Check source from HTML page (alt + ctrl + U in Chrome) to see if both jQuery and spec files were loaded.