Skip to content

Instantly share code, notes, and snippets.

@fellix
Created July 6, 2011 12:10
Show Gist options
  • Save fellix/1067082 to your computer and use it in GitHub Desktop.
Save fellix/1067082 to your computer and use it in GitHub Desktop.
JasmineRice
#spec/javascripts/album_spec.js
describe("Album", function(){
it("should have a valid url", function(){
album = new Album({album: {album_collection_id: 1}});
expect(album.url).toEqual('/collection/1/albums');
});
});
group :development, :test do
gem 'rspec-rails'
gem 'shoulda'
gem 'jasmine'
gem "jasminerice"
end
mount Jasminerice::Engine => "/jasmine"
#spec/javascripts/spec.js.coffe
#=require_tree ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment