@@ -149,6 +149,28 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||
|
149 | 149 | end |
|
150 | 150 | end |
|
151 | 151 | |
|
152 | def test_annotate_author_escaping | |
|
153 | repository = Repository::Bazaar.create( | |
|
154 | :project => @project, | |
|
155 | :url => File.join(REPOSITORY_PATH, "author_escaping"), | |
|
156 | :identifier => 'author_escaping', | |
|
157 | :log_encoding => 'UTF-8') | |
|
158 | assert repository | |
|
159 | get :annotate, :id => PRJ_ID, :repository_id => 'author_escaping', | |
|
160 | :path => repository_path_hash(['author-escaping-test.txt'])[:param] | |
|
161 | assert_response :success | |
|
162 | assert_template 'annotate' | |
|
163 | assert_select "th.line-num", :text => '1' do | |
|
164 | assert_select "+ td.revision" do | |
|
165 | assert_select "a", :text => '2' | |
|
166 | assert_select "+ td.author", :text => "test &" do | |
|
167 | assert_select "+ td", | |
|
168 | :text => "author escaping test" | |
|
169 | end | |
|
170 | end | |
|
171 | end | |
|
172 | end | |
|
173 | ||
|
152 | 174 | def test_destroy_valid_repository |
|
153 | 175 | @request.session[:user_id] = 1 # admin |
|
154 | 176 | assert_equal 0, @repository.changesets.count |
General Comments 0
You need to be logged in to leave comments.
Login now