i've temporarily removed all the arbitrary text switching for now (which is still in version control // which we will get to later) also moved photo dimensions into a dimensions hash in photo.rb.
21 lines
No EOL
561 B
JavaScript
21 lines
No EOL
561 B
JavaScript
describe("app.views.SmallFrame", function(){
|
|
beforeEach(function(){
|
|
this.model = factory.post({
|
|
photos : [
|
|
factory.photoAttrs({sizes : {large : "http://tieguy.org/me.jpg"}}),
|
|
factory.photoAttrs({sizes : {large : "http://whatthefuckiselizabethstarkupto.com/none_knows.gif"}}) //SIC
|
|
]
|
|
})
|
|
this.view = new app.views.SmallFrame({model : this.model})
|
|
})
|
|
|
|
describe("rendering", function(){
|
|
beforeEach(function(){
|
|
this.view.render()
|
|
});
|
|
})
|
|
|
|
describe("photos", function() {
|
|
// ratio pending...
|
|
})
|
|
}); |