|
|
@@ -39,6 +39,17 @@ class MessagesControllerTest < ActionController::TestCase |
|
|
|
assert_not_nil assigns(:project) |
|
|
|
assert_not_nil assigns(:topic) |
|
|
|
end |
|
|
|
|
|
|
|
def test_show_should_contain_reply_field_tags_for_quoting |
|
|
|
@request.session[:user_id] = 2 |
|
|
|
get :show, :board_id => 1, :id => 1 |
|
|
|
assert_response :success |
|
|
|
|
|
|
|
# tags required by MessagesController#quote |
|
|
|
assert_tag 'input', :attributes => {:id => 'message_subject'} |
|
|
|
assert_tag 'textarea', :attributes => {:id => 'message_content'} |
|
|
|
assert_tag 'div', :attributes => {:id => 'reply'} |
|
|
|
end |
|
|
|
|
|
|
|
def test_show_with_pagination |
|
|
|
message = Message.find(1) |