OSDN Git Service

t#30328:create op import ...and pull
[pettanr/pettanr.git] / spec / controllers / demanders_controller_spec.rb
index 300eb52..8b1ae8f 100644 (file)
@@ -430,7 +430,7 @@ describe DemandersController 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
@@ -483,7 +483,7 @@ describe DemandersController 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
@@ -536,7 +536,7 @@ describe DemandersController 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
@@ -586,7 +586,7 @@ describe DemandersController 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