]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/issues_controller_test.rb
Moved strings to locales + Added 'Issues' button + Fixed typo in tests
[rails.git] / test / controllers / issues_controller_test.rb
index 980603e20faa72a70f0b98f2800db9ee9d644d32..6eacac11da27efbd9f723a0dd51a4f55e0918ad2 100644 (file)
@@ -20,7 +20,7 @@ class IssuesControllerTest < ActionController::TestCase
     assert_response :success
     assert_difference "Issue.count",1 do 
       details = "Details of a report"
-      post :create, { :report => { :deatils => details},
+      post :create, { :report => { :details => details},
                       :issue => { reportable_id: 1, reportable_type: "DiaryEntry", reported_user_id: 1} }
     end
     assert_response :redirect
@@ -58,11 +58,11 @@ class IssuesControllerTest < ActionController::TestCase
     
     # Create Issue
 
-    get :new, {reportable_id: 1, reportable_type: "DiaryEntry", user: 1}
+    get :new, {reportable_id: 1, reportable_type: "DiaryEntry", reported_user_id: 1}
     assert_response :success
     assert_difference "Issue.count",1 do 
       details = "Details of a report"
-      post :create, { :report => { :deatils => details},
+      post :create, { :report => { :details => details},
                       :issue => { reportable_id: 1, reportable_type: "DiaryEntry", reported_user_id: 1} }
     end
     assert_response :redirect
@@ -78,11 +78,11 @@ class IssuesControllerTest < ActionController::TestCase
 
     # Create Issue
 
-    get :new, {reportable_id: 1, reportable_type: "DiaryEntry", user: 1}
+    get :new, {reportable_id: 1, reportable_type: "DiaryEntry", reported_user_id: 1}
     assert_response :success
     assert_difference "Issue.count",1 do 
       details = "Details of a report"
-      post :create, { :report => { :deatils => details},
+      post :create, { :report => { :details => details},
                       :issue => { reportable_id: 1, reportable_type: "DiaryEntry", reported_user_id: 1} }
     end
     assert_response :redirect