Jasmine jQuery Setup

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.

Posted in Front end, Testing | Leave a comment

Rails Application from scratch

Generating Rails apps is cool. Really cool. It’s push-button web application development.

Yet, push-button development is black box. Sure, running rails generate scaffold Foobar writes a lot of code… but what does it all mean?

Continue reading

Posted in Infrastructure | Tagged | Leave a comment

Status Rails 3 Upgrade Brain-storm

  • Upgrade Status application to Rails 3.
  • Reduce number of tables from three (user profile, login and status) to two (user profile and status) by combining user profile and login tables.
  • Status table contains seven fields, including time stamp.
  • Manually upgrade with Railscast.
  • Work through merge conflicts.
  • Commit and push clean, working copy.
Posted in Planning | Leave a comment

Rails 3 and Ruby 1.9.2 Upgrades for Statustar (10/6)

  • Rails upgraded from v3.0.0 to v.2.3.8 on 10/6/10.
  • Ruby upgraded from v1.9.1 to v1.9.2 on 10/6/10.
  • Begin re-building Statustar for Rails 3.0.0.
Posted in Infrastructure, News | Tagged | Leave a comment

Git Repo Merged (9/22/10)

  • Git repository edited to remove nested applications (<root>/statustar/ruby/statustar): http://github.com/doolin/statustar/commits/master
  • Edits merged on 9/22/10, which may have caused routing error.
  • Upgraded from Rails 2.3.8 & Ruby 1.9.1 to Rails 3.0.0 & Ruby 1.9.2 within the week and unable to run application (both locally and on Heroku).
Posted in Version Control | Tagged | Leave a comment