##// END OF EJS Templates
Adds a test for when displaying the new message form on boards#show....
Jean-Philippe Lang -
r8899:4384db597c51
parent child
Show More
@@ -55,6 +55,16 class BoardsControllerTest < ActionController::TestCase
55 assert_not_nil assigns(:topics)
55 assert_not_nil assigns(:topics)
56 end
56 end
57
57
58 def test_show_with_permission_should_display_the_new_message_form
59 @request.session[:user_id] = 2
60 get :show, :project_id => 1, :id => 1
61 assert_response :success
62 assert_template 'show'
63
64 assert_tag 'form', :attributes => {:id => 'message-form'}
65 assert_tag 'input', :attributes => {:name => 'message[subject]'}
66 end
67
58 def test_show_atom
68 def test_show_atom
59 get :show, :project_id => 1, :id => 1, :format => 'atom'
69 get :show, :project_id => 1, :id => 1, :format => 'atom'
60 assert_response :success
70 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now