fix all but 2 jasmine specs

This commit is contained in:
danielgrippi 2012-02-21 11:46:04 -08:00
parent ebcde41e69
commit b1cbd0f4a9
3 changed files with 6 additions and 10 deletions

View file

@ -15,6 +15,8 @@
{{/if}}
<div class="collapsible">
{{{text}}}
<p>
{{{text}}}
</p>
{{{o_embed_html}}}
</div>

View file

@ -14,10 +14,6 @@ app.views.Feedback = app.views.Base.extend({
this.model.bind('feedback', this.render, this);
},
postRenderTemplate : function(){
console.log('fuck')
},
presenter : function() {
return _.extend(this.defaultPresenter(), {
userCanReshare : this.userCanReshare()

View file

@ -29,9 +29,7 @@ describe("app.views.Stream", function() {
describe("#render", function() {
beforeEach(function() {
this.statusMessage = this.stream.posts.models[0];
this.reshare = this.stream.posts.models[1];
this.statusElement = $(this.view.$("#" + this.statusMessage.get("guid")));
this.reshareElement = $(this.view.$("#" + this.reshare.get("guid")));
this.statusElement = $(this.view.$(".stream_element")[0]);
});
context("when rendering a status message", function() {
@ -46,7 +44,7 @@ describe("app.views.Stream", function() {
beforeEach(function() {
this.statusMessage = this.stream.posts.models[0];
this.statusElement = $(this.view.$("#" + this.statusMessage.get("guid")));
this.statusElement = $(this.view.$(".stream_element")[0]);
readMoreLink = this.statusElement.find('.read-more a');
readMoreLink.text("read more");
});
@ -91,7 +89,7 @@ describe("app.views.Stream", function() {
it('collapses li elements on webkit/IE but leaves them alone on firefox', function() {
this.statusMessage = this.stream.posts.models[3];
this.statusElement = $(this.view.$("#" + this.statusMessage.get("guid")));
this.statusElement = $(this.view.$(".stream_element")[3]);
readMoreLink = this.statusElement.find('.read-more a');
readMoreLink.text("read more");