fixed failing cucumber

This commit is contained in:
maxwell 2011-03-17 13:49:08 -07:00
parent 14ff1e0143
commit 1de52d3ba2
2 changed files with 4 additions and 2 deletions

View file

@ -12,6 +12,7 @@
Publisher.autocompletion.onSelect($("#status_message_fake_text"),person,'#{@person.name}'); Publisher.autocompletion.onSelect($("#status_message_fake_text"),person,'#{@person.name}');
$("#publisher #status_message_fake_text").val(function(index, value){ return value + " " }); $("#publisher #status_message_fake_text").val(function(index, value){ return value + " " });
$("#publisher").bind('ajax:success', function(){location.reload();}); $("#publisher").bind('ajax:success', function(){location.reload();});
Publisher.open();
}); });
#new_status_message_pane #new_status_message_pane
@ -21,3 +22,4 @@
= t('.mentioning', :person => @person.name) = t('.mentioning', :person => @person.name)
= render :partial => 'shared/publisher', :locals => { :aspect => @aspect, :aspect_ids => @aspect_ids, :aspects_with_person => @aspects_with_person, :person => @person} = render :partial => 'shared/publisher', :locals => { :aspect => @aspect, :aspect_ids => @aspect_ids, :aspects_with_person => @aspects_with_person, :person => @person}

View file

@ -55,7 +55,7 @@ Feature: posting
And I have turned off jQuery effects And I have turned off jQuery effects
And I click "Mention" button And I click "Mention" button
And I expand the publisher in the modal window And I expand the publisher in the modal window
And I append "#publisher #status_message_text" with "I am eating a yogurt" in the modal window And I append "#status_message_text" with "I am eating a yogurt" in the modal window
And I press "Share" in the modal window And I press "Share" in the modal window
And I follow "<aspect>" And I follow "<aspect>"
Then I should <see> "I am eating a yogurt" Then I should <see> "I am eating a yogurt"
@ -70,7 +70,7 @@ Feature: posting
And I have turned off jQuery effects And I have turned off jQuery effects
And I click "Mention" button And I click "Mention" button
And I expand the publisher in the modal window And I expand the publisher in the modal window
And I append "#publisher #status_message_text" with "I am eating a yogurt" in the modal window And I append "#status_message_text" with "I am eating a yogurt" in the modal window
And I follow "DidntPostTo" within "#publisher" in the modal window And I follow "DidntPostTo" within "#publisher" in the modal window
And I press "Share" in the modal window And I press "Share" in the modal window
And I follow "<aspect>" And I follow "<aspect>"