fixing debugging statement in smcontroller, also fix the spec
This commit is contained in:
parent
e446dcaeb5
commit
16e8ecc72c
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ class StatusMessagesController < ApplicationController
|
|||
public_flag.to_s.match(/(true)|(on)/) ? public_flag = true : public_flag = false
|
||||
params[:status_message][:public] = public_flag
|
||||
|
||||
@status_message = current_user.build_post(:status_message, params[:status_message].merge!(:message => ''))
|
||||
@status_message = current_user.build_post(:status_message, params[:status_message])
|
||||
aspects = current_user.aspects_from_ids(params[:aspect_ids])
|
||||
|
||||
if @status_message.save
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ describe StatusMessagesController do
|
|||
end
|
||||
it 'sends the errors in the body on js' do
|
||||
post :create, status_message_hash.merge!(:format => 'js', :status_message => {:message => ''})
|
||||
response.body.should == 'Status message requires a message or at least one photo'
|
||||
response.body.should include('Status message requires a message or at least one photo')
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue