diff test/functional/.svn/text-base/journals_controller_test.rb.svn-base @ 14:1d32c0a0efbf

* Update to SVN trunk (revisions 3892-4040)
author Chris Cannam
date Wed, 25 Aug 2010 16:30:24 +0100
parents 513646585e45
children af80e5618e9b
line wrap: on
line diff
--- a/test/functional/.svn/text-base/journals_controller_test.rb.svn-base	Wed Jul 28 12:47:17 2010 +0100
+++ b/test/functional/.svn/text-base/journals_controller_test.rb.svn-base	Wed Aug 25 16:30:24 2010 +0100
@@ -31,6 +31,27 @@
     User.current = nil
   end
   
+  def test_index
+    get :index, :project_id => 1
+    assert_response :success
+    assert_not_nil assigns(:journals)
+    assert_equal 'application/atom+xml', @response.content_type
+  end
+  
+  def test_reply_to_issue
+    @request.session[:user_id] = 2
+    get :new, :id => 1
+    assert_response :success
+    assert_select_rjs :show, "update"
+  end
+
+  def test_reply_to_note
+    @request.session[:user_id] = 2
+    get :new, :id => 1, :journal_id => 2
+    assert_response :success
+    assert_select_rjs :show, "update"
+  end
+
   def test_get_edit
     @request.session[:user_id] = 1
     xhr :get, :edit, :id => 2