Add spec for js requests on stmc create
This commit is contained in:
parent
3ada121d0b
commit
703e8e0426
1 changed files with 4 additions and 1 deletions
|
|
@ -52,7 +52,10 @@ describe StatusMessagesController do
|
||||||
:message =>"facebook, is that you?",
|
:message =>"facebook, is that you?",
|
||||||
:aspect_ids =>"#{aspect.id}"}}
|
:aspect_ids =>"#{aspect.id}"}}
|
||||||
}
|
}
|
||||||
|
it 'responds to js requests' do
|
||||||
|
post :create, status_message_hash.merge(:format => 'js')
|
||||||
|
response.status.should == 201
|
||||||
|
end
|
||||||
it "doesn't overwrite person_id" do
|
it "doesn't overwrite person_id" do
|
||||||
new_user = make_user
|
new_user = make_user
|
||||||
status_message_hash[:status_message][:person_id] = new_user.person.id
|
status_message_hash[:status_message][:person_id] = new_user.person.id
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue