summaryrefslogtreecommitdiff
path: root/test/controllers
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 19:22:14 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 19:22:14 -0400
commit9788bda30fd076215c720c49ebf8b6ae2303930d (patch)
treee6573686b929ff95dde8a0e31947aeabd1704c62 /test/controllers
parent7de35332168374c176915cfeced61acc11f0ec8e (diff)
parent379cf06b33c672e01845c9c826ce58f8517059bd (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'test/controllers')
-rw-r--r--test/controllers/pms_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/pms_controller_test.rb b/test/controllers/pms_controller_test.rb
index 18b2449..2a2c1ce 100644
--- a/test/controllers/pms_controller_test.rb
+++ b/test/controllers/pms_controller_test.rb
@@ -18,7 +18,7 @@ class PmsControllerTest < ActionController::TestCase
test "should create pm" do
assert_difference('Pm.count') do
- post :create, pm: { author_id: @pm.author_id, message: @pm.message, recipient_id: @pm.recipient_id }
+ post :create, pm: { author_id: @pm.author_id, conversation_id: @pm.conversation_id, message: @pm.message, recipient_id: @pm.recipient_id, subject: @pm.subject }
end
assert_redirected_to pm_path(assigns(:pm))
@@ -35,7 +35,7 @@ class PmsControllerTest < ActionController::TestCase
end
test "should update pm" do
- patch :update, id: @pm, pm: { author_id: @pm.author_id, message: @pm.message, recipient_id: @pm.recipient_id }
+ patch :update, id: @pm, pm: { author_id: @pm.author_id, conversation_id: @pm.conversation_id, message: @pm.message, recipient_id: @pm.recipient_id, subject: @pm.subject }
assert_redirected_to pm_path(assigns(:pm))
end