This is just a small application I've put together to test javascript TDD using jasmine and coffeescript. There is a small sinatra application mostly existing to automatically compile my coffeescript into javascript.
Since "application" has two meanings in this case, I'm calling the credit card application object a "form"
I'm using rspec to test the server script and jasmine to test the javascript app. The app is constructed using Ember, a fairly new MVC framework that runs on jquery and uses "handlebars" for templating.
Ember turned out to be way overkill for this project. Most of what was done could have been done with jQuery and simple coffeescript, and Ember added complexity that really wasn't needed. I was hoping that it would be "rails simple" but it really didn't seem to be. (or I don't remember how complex rails was then I started)
Run bundle install
Test the server with "rspec spec"
Run the server with "ruby server.rb" or "jruby server.rb" (only tested with jruby)
Run the jasmine tests
Run the demo
- Jasny-bootstrap 2.1.1-j2
- jQuery 1.8.1
- Ember JS 1.0.0-PRE.2
- Datepicker for bootstrap
- Jasmine 1.2.0
- Handlebars 1.0rc1
Javascript frameworks list Jasmine testing ajax Ember js objects Testing ember views