added status message html and mobile spec
This commit is contained in:
parent
97233851df
commit
e8933fa1da
1 changed files with 12 additions and 0 deletions
|
|
@ -79,11 +79,23 @@ describe StatusMessagesController do
|
||||||
:aspect_ids => [@aspect1.id.to_s] }
|
:aspect_ids => [@aspect1.id.to_s] }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
it 'creates with valid html' do
|
||||||
|
post :create, status_message_hash.merge(:format => 'html')
|
||||||
|
response.status.should == 302
|
||||||
|
response.should be_redirect
|
||||||
|
end
|
||||||
|
|
||||||
it 'creates with valid json' do
|
it 'creates with valid json' do
|
||||||
post :create, status_message_hash.merge(:format => 'json')
|
post :create, status_message_hash.merge(:format => 'json')
|
||||||
response.status.should == 201
|
response.status.should == 201
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'creates with valid mobile' do
|
||||||
|
post :create, status_message_hash.merge(:format => 'mobile')
|
||||||
|
response.status.should == 302
|
||||||
|
response.should be_redirect
|
||||||
|
end
|
||||||
|
|
||||||
it 'removes getting started from new users' do
|
it 'removes getting started from new users' do
|
||||||
@controller.should_receive(:remove_getting_started)
|
@controller.should_receive(:remove_getting_started)
|
||||||
post :create, status_message_hash
|
post :create, status_message_hash
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue