end
it '一時的メッセージに処理成功を設定する' do
post :req
- flash[:notice].should match /success/
+ flash[:notice].should eq I18n.t('demanders.flash.notice.requested')
end
end
context 'json形式' do
end
it '一時的メッセージに処理失敗を設定する' do
post :req
- flash[:notice].should match /not/
+ flash[:notice].should eq I18n.t('demanders.flash.notice.not_requested')
end
end
context 'json形式' do
end
it '一時的メッセージに処理成功を設定する' do
delete :destroy, :id => @demander.id
- flash[:notice].should match /success/
+ flash[:notice].should eq I18n.t('demanders.flash.notice.stopped')
end
end
context 'json形式' do
end
it '一時的メッセージに処理失敗を設定する' do
delete :destroy, :id => @demander.id
- flash[:notice].should match /not/
+ flash[:notice].should eq I18n.t('demanders.flash.notice.not_stopped')
end
end
context 'json形式' do