Skip to content

Instantly share code, notes, and snippets.

@psykidellic
Created June 7, 2013 05:19
Show Gist options
  • Select an option

  • Save psykidellic/5727201 to your computer and use it in GitHub Desktop.

Select an option

Save psykidellic/5727201 to your computer and use it in GitHub Desktop.
define (require) ->
Album = require('modules/models/album')
AlbumView = require('modules/views/albums/album')
describe 'albumview', ->
it 'should render', ->
album = new Album(
id: 1
coverart_small: "Test Album"
slug: "something_something"
short_name: "Test short name"
artist: "Test Artist"
)
view = new AlbumView({model: album})
view.render()
console.log(view.el)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment