Add spec to commentscontroller
This commit is contained in:
parent
017075e480
commit
cbe98a1479
1 changed files with 9 additions and 0 deletions
|
|
@ -23,6 +23,15 @@ describe CommentsController do
|
|||
{:text =>"facebook, is that you?",
|
||||
:post_id =>"#{@post.id}"}
|
||||
}
|
||||
context "on my own post" do
|
||||
before do
|
||||
@post = user.post :status_message, :message => 'GIANTS', :to => aspect.id
|
||||
end
|
||||
it 'responds to format js' do
|
||||
post :create, comment_hash.merge(:format => 'js')
|
||||
response.code.should == '201'
|
||||
end
|
||||
end
|
||||
|
||||
context "on a post from a contact" do
|
||||
before do
|
||||
|
|
|
|||
Loading…
Reference in a new issue