##// END OF EJS Templates
Extract headings and TOC parsing from the textile formatter....
Extract headings and TOC parsing from the textile formatter. Fixes #2038 and #3707 and will allow to support TOC with other text formatters. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4376 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3831:3eff27344b0b
r4262:024ff96ee27a
Show More
auto_completes_controller_test.rb
20 lines | 628 B | text/x-ruby | RubyLexer
/ test / functional / auto_completes_controller_test.rb
require File.dirname(__FILE__) + '/../test_helper'
class AutoCompletesControllerTest < ActionController::TestCase
fixtures :all
def test_issues_should_not_be_case_sensitive
get :issues, :project_id => 'ecookbook', :q => 'ReCiPe'
assert_response :success
assert_not_nil assigns(:issues)
assert assigns(:issues).detect {|issue| issue.subject.match /recipe/}
end
def test_issues_should_return_issue_with_given_id
get :issues, :project_id => 'subproject1', :q => '13'
assert_response :success
assert_not_nil assigns(:issues)
assert assigns(:issues).include?(Issue.find(13))
end
end