</tr>
</table>
<% else -%>
- <h2><%= t('artist.noregister') -%></h2>
+ <h2><%= t('.artist') -%></h2>
+ <h3><%= t('.updated_picture') -%></h3>
+ <h3><%= link_to t('.not_artist'), main_app.new_artist_path -%></h2>
<% end -%>
put :update, :id => @ds.id, :demander_status => @attr
response.should redirect_to(@ds)
end
+ it '一時的メッセージに処理成功を設定する' do
+ put :update, :id => @ds.id, :demander_status => @attr
+ flash[:notice].should eq I18n.t('demander_statuses.flash.notice.approved')
+ end
end
context 'json形式' do
before do
delete :destroy, :id => @ds.id
response.status.should eq 302
end
- it '貸与状況閲覧(show)ページに遷移するする' do
+ it '貸与状況閲覧(show)ページに遷移する' do
delete :destroy, :id => @ds.id
response.should redirect_to(@ds)
end
it '一時的メッセージに処理成功を設定する' do
delete :destroy, :id => @ds.id
- flash[:notice].should match /success/
+ flash[:notice].should eq I18n.t('demander_statuses.flash.notice.rejected')
end
end
context 'json形式' do
end
it '一時的メッセージに処理失敗を設定する' do
delete :destroy, :id => @ds.id
- flash[:notice].should match /not/
+ flash[:notice].should eq I18n.t('demander_statuses.flash.notice.not_rejected')
end
end
context 'json形式' do
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