Revision 442:753f1380d6bc test/integration/.svn
| test/integration/.svn/all-wcprops | ||
|---|---|---|
| 1 |
K 25 |
|
| 2 |
svn:wc:ra_dav:version-url |
|
| 3 |
V 41 |
|
| 4 |
/svn/!svn/ver/4729/trunk/test/integration |
|
| 5 |
END |
|
| 6 |
application_test.rb |
|
| 7 |
K 25 |
|
| 8 |
svn:wc:ra_dav:version-url |
|
| 9 |
V 61 |
|
| 10 |
/svn/!svn/ver/4509/trunk/test/integration/application_test.rb |
|
| 11 |
END |
|
| 12 |
routing_test.rb |
|
| 13 |
K 25 |
|
| 14 |
svn:wc:ra_dav:version-url |
|
| 15 |
V 57 |
|
| 16 |
/svn/!svn/ver/4729/trunk/test/integration/routing_test.rb |
|
| 17 |
END |
|
| 18 |
admin_test.rb |
|
| 19 | 1 |
K 25 |
| 20 | 2 |
svn:wc:ra_dav:version-url |
| 21 | 3 |
V 55 |
| 22 |
/svn/!svn/ver/4509/trunk/test/integration/admin_test.rb
|
|
| 4 |
/svn/!svn/ver/5946/branches/1.2-stable/test/integration
|
|
| 23 | 5 |
END |
| 24 |
projects_test.rb |
|
| 25 |
K 25 |
|
| 26 |
svn:wc:ra_dav:version-url |
|
| 27 |
V 58 |
|
| 28 |
/svn/!svn/ver/4509/trunk/test/integration/projects_test.rb |
|
| 29 |
END |
|
| 30 |
issues_test.rb |
|
| 31 |
K 25 |
|
| 32 |
svn:wc:ra_dav:version-url |
|
| 33 |
V 56 |
|
| 34 |
/svn/!svn/ver/4509/trunk/test/integration/issues_test.rb |
|
| 35 |
END |
|
| 36 |
account_test.rb |
|
| 37 |
K 25 |
|
| 38 |
svn:wc:ra_dav:version-url |
|
| 39 |
V 57 |
|
| 40 |
/svn/!svn/ver/4509/trunk/test/integration/account_test.rb |
|
| 41 |
END |
|
| 42 |
layout_test.rb |
|
| 43 |
K 25 |
|
| 44 |
svn:wc:ra_dav:version-url |
|
| 45 |
V 56 |
|
| 46 |
/svn/!svn/ver/4509/trunk/test/integration/layout_test.rb |
|
| 47 |
END |
|
| test/integration/.svn/entries | ||
|---|---|---|
| 1 | 1 |
10 |
| 2 | 2 |
|
| 3 | 3 |
dir |
| 4 |
4993
|
|
| 5 |
http://redmine.rubyforge.org/svn/trunk/test/integration
|
|
| 4 |
6000
|
|
| 5 |
http://redmine.rubyforge.org/svn/branches/1.2-stable/test/integration
|
|
| 6 | 6 |
http://redmine.rubyforge.org/svn |
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 |
2011-01-16T15:23:11.666065Z
|
|
| 11 |
4729
|
|
| 10 |
2011-05-29T07:24:15.223638Z
|
|
| 11 |
5946
|
|
| 12 | 12 |
jplang |
| 13 | 13 |
|
| 14 | 14 |
|
| ... | ... | |
| 32 | 32 |
|
| 33 | 33 |
|
| 34 | 34 |
|
| 35 |
2011-03-03T11:05:08.000000Z
|
|
| 35 |
2011-06-06T13:15:00.000000Z
|
|
| 36 | 36 |
b828e87474858f965d2048f5f15f8e4b |
| 37 | 37 |
2010-12-12T23:24:34.194336Z |
| 38 | 38 |
4509 |
| ... | ... | |
| 72 | 72 |
|
| 73 | 73 |
|
| 74 | 74 |
|
| 75 |
2011-03-03T11:05:08.000000Z
|
|
| 76 |
7e4b62197ce8e1dfe456477ae9ee384f
|
|
| 77 |
2011-01-16T15:23:11.666065Z
|
|
| 78 |
4729
|
|
| 75 |
2011-06-06T13:18:32.000000Z
|
|
| 76 |
f45261de85d88966691601f82641521c
|
|
| 77 |
2011-04-01T15:30:32.931755Z
|
|
| 78 |
5280
|
|
| 79 | 79 |
jplang |
| 80 | 80 |
|
| 81 | 81 |
|
| ... | ... | |
| 98 | 98 |
|
| 99 | 99 |
|
| 100 | 100 |
|
| 101 |
28869
|
|
| 101 |
29127
|
|
| 102 | 102 |
|
| 103 | 103 |
admin_test.rb |
| 104 | 104 |
file |
| ... | ... | |
| 106 | 106 |
|
| 107 | 107 |
|
| 108 | 108 |
|
| 109 |
2011-03-03T11:05:08.000000Z
|
|
| 109 |
2011-06-06T13:15:00.000000Z
|
|
| 110 | 110 |
fbd4d2a8c15f4ec209250f3395903604 |
| 111 | 111 |
2010-12-12T23:24:34.194336Z |
| 112 | 112 |
4509 |
| ... | ... | |
| 140 | 140 |
|
| 141 | 141 |
|
| 142 | 142 |
|
| 143 |
2011-03-03T11:05:08.000000Z
|
|
| 143 |
2011-06-06T13:15:00.000000Z
|
|
| 144 | 144 |
4b83660bc635b651f2e1d2d8ee50b84b |
| 145 | 145 |
2010-12-12T23:24:34.194336Z |
| 146 | 146 |
4509 |
| ... | ... | |
| 174 | 174 |
|
| 175 | 175 |
|
| 176 | 176 |
|
| 177 |
2011-03-03T11:05:08.000000Z
|
|
| 178 |
09fa9e6798468c9b7fda21b438e16c5e
|
|
| 179 |
2010-12-12T23:24:34.194336Z
|
|
| 180 |
4509
|
|
| 181 |
jbbarth
|
|
| 177 |
2011-06-06T13:18:32.000000Z
|
|
| 178 |
7b3dce66fa8d8e391dc027a5d90a510f
|
|
| 179 |
2011-04-02T08:01:06.891147Z
|
|
| 180 |
5289
|
|
| 181 |
tmaruyama
|
|
| 182 | 182 |
has-props |
| 183 | 183 |
|
| 184 | 184 |
|
| ... | ... | |
| 200 | 200 |
|
| 201 | 201 |
|
| 202 | 202 |
|
| 203 |
4801
|
|
| 203 |
6985
|
|
| 204 | 204 |
|
| 205 | 205 |
account_test.rb |
| 206 | 206 |
file |
| ... | ... | |
| 208 | 208 |
|
| 209 | 209 |
|
| 210 | 210 |
|
| 211 |
2011-03-03T11:05:08.000000Z
|
|
| 211 |
2011-06-06T13:15:00.000000Z
|
|
| 212 | 212 |
5cdf08841a7442b774036772bb1fc1a7 |
| 213 | 213 |
2010-12-12T23:24:34.194336Z |
| 214 | 214 |
4509 |
| ... | ... | |
| 242 | 242 |
|
| 243 | 243 |
|
| 244 | 244 |
|
| 245 |
2011-03-03T11:05:08.000000Z
|
|
| 246 |
ff949103a3bdac892a3372cfb71047f0
|
|
| 247 |
2010-12-12T23:24:34.194336Z
|
|
| 248 |
4509
|
|
| 249 |
jbbarth
|
|
| 245 |
2011-06-06T13:18:32.000000Z
|
|
| 246 |
9058073eeb692c5629a88c6066e2cca8
|
|
| 247 |
2011-03-28T19:56:22.585019Z
|
|
| 248 |
5238
|
|
| 249 |
jplang
|
|
| 250 | 250 |
|
| 251 | 251 |
|
| 252 | 252 |
|
| ... | ... | |
| 268 | 268 |
|
| 269 | 269 |
|
| 270 | 270 |
|
| 271 |
626
|
|
| 271 |
1319
|
|
| 272 | 272 |
|
| test/integration/.svn/text-base/issues_test.rb.svn-base | ||
|---|---|---|
| 1 |
# redMine - project management software
|
|
| 2 |
# Copyright (C) 2006-2008 Jean-Philippe Lang
|
|
| 1 |
# Redmine - project management software
|
|
| 2 |
# Copyright (C) 2006-2011 Jean-Philippe Lang
|
|
| 3 | 3 |
# |
| 4 | 4 |
# This program is free software; you can redistribute it and/or |
| 5 | 5 |
# modify it under the terms of the GNU General Public License |
| ... | ... | |
| 65 | 65 |
end |
| 66 | 66 |
|
| 67 | 67 |
# add then remove 2 attachments to an issue |
| 68 |
def test_issue_attachements
|
|
| 68 |
def test_issue_attachments |
|
| 69 | 69 |
log_user('jsmith', 'jsmith')
|
| 70 | 70 |
set_tmp_attachments_directory |
| 71 | 71 |
|
| ... | ... | |
| 126 | 126 |
:attributes => { :href => '/projects/ecookbook/issues?page=2' }
|
| 127 | 127 |
|
| 128 | 128 |
end |
| 129 |
|
|
| 130 |
def test_issue_with_user_custom_field |
|
| 131 |
@field = IssueCustomField.create!(:name => 'Tester', :field_format => 'user', :is_for_all => true, :trackers => Tracker.all) |
|
| 132 |
Role.anonymous.add_permission! :add_issues, :edit_issues |
|
| 133 |
users = Project.find(1).users |
|
| 134 |
tester = users.first |
|
| 135 |
|
|
| 136 |
# Issue form |
|
| 137 |
get '/projects/ecookbook/issues/new' |
|
| 138 |
assert_response :success |
|
| 139 |
assert_tag :select, |
|
| 140 |
:attributes => {:name => "issue[custom_field_values][#{@field.id}]"},
|
|
| 141 |
:children => {:count => (users.size + 1)}, # +1 for blank value
|
|
| 142 |
:child => {
|
|
| 143 |
:tag => 'option', |
|
| 144 |
:attributes => {:value => tester.id.to_s},
|
|
| 145 |
:content => tester.name |
|
| 146 |
} |
|
| 147 |
|
|
| 148 |
# Create issue |
|
| 149 |
assert_difference 'Issue.count' do |
|
| 150 |
post '/projects/ecookbook/issues', |
|
| 151 |
:issue => {
|
|
| 152 |
:tracker_id => '1', |
|
| 153 |
:priority_id => '4', |
|
| 154 |
:subject => 'Issue with user custom field', |
|
| 155 |
:custom_field_values => {@field.id.to_s => users.first.id.to_s}
|
|
| 156 |
} |
|
| 157 |
end |
|
| 158 |
issue = Issue.first(:order => 'id DESC') |
|
| 159 |
assert_response 302 |
|
| 160 |
|
|
| 161 |
# Issue view |
|
| 162 |
follow_redirect! |
|
| 163 |
assert_tag :th, |
|
| 164 |
:content => /Tester/, |
|
| 165 |
:sibling => {
|
|
| 166 |
:tag => 'td', |
|
| 167 |
:content => tester.name |
|
| 168 |
} |
|
| 169 |
assert_tag :select, |
|
| 170 |
:attributes => {:name => "issue[custom_field_values][#{@field.id}]"},
|
|
| 171 |
:children => {:count => (users.size + 1)}, # +1 for blank value
|
|
| 172 |
:child => {
|
|
| 173 |
:tag => 'option', |
|
| 174 |
:attributes => {:value => tester.id.to_s, :selected => 'selected'},
|
|
| 175 |
:content => tester.name |
|
| 176 |
} |
|
| 177 |
|
|
| 178 |
# Update issue |
|
| 179 |
new_tester = users[1] |
|
| 180 |
assert_difference 'Journal.count' do |
|
| 181 |
put "/issues/#{issue.id}",
|
|
| 182 |
:notes => 'Updating custom field', |
|
| 183 |
:issue => {
|
|
| 184 |
:custom_field_values => {@field.id.to_s => new_tester.id.to_s}
|
|
| 185 |
} |
|
| 186 |
end |
|
| 187 |
assert_response 302 |
|
| 188 |
|
|
| 189 |
# Issue view |
|
| 190 |
follow_redirect! |
|
| 191 |
assert_tag :content => 'Tester', |
|
| 192 |
:ancestor => {:tag => 'ul', :attributes => {:class => /details/}},
|
|
| 193 |
:sibling => {
|
|
| 194 |
:content => tester.name, |
|
| 195 |
:sibling => {
|
|
| 196 |
:content => new_tester.name |
|
| 197 |
} |
|
| 198 |
} |
|
| 199 |
end |
|
| 129 | 200 |
end |
| test/integration/.svn/text-base/layout_test.rb.svn-base | ||
|---|---|---|
| 21 | 21 |
assert_response :forbidden |
| 22 | 22 |
assert_select "#admin-menu", :count => 0 |
| 23 | 23 |
end |
| 24 |
|
|
| 25 |
def test_top_menu_and_search_not_visible_when_login_required |
|
| 26 |
with_settings :login_required => '1' do |
|
| 27 |
get '/' |
|
| 28 |
assert_select "#top-menu > ul", 0 |
|
| 29 |
assert_select "#quick-search", 0 |
|
| 30 |
end |
|
| 31 |
end |
|
| 32 |
|
|
| 33 |
def test_top_menu_and_search_visible_when_login_not_required |
|
| 34 |
with_settings :login_required => '0' do |
|
| 35 |
get '/' |
|
| 36 |
assert_select "#top-menu > ul" |
|
| 37 |
assert_select "#quick-search" |
|
| 38 |
end |
|
| 39 |
end |
|
| 40 |
|
|
| 41 |
def test_wiki_formatter_header_tags |
|
| 42 |
Role.anonymous.add_permission! :add_issues |
|
| 43 |
|
|
| 44 |
get '/projects/ecookbook/issues/new' |
|
| 45 |
assert_tag :script, |
|
| 46 |
:attributes => {:src => %r{^/javascripts/jstoolbar/textile.js}},
|
|
| 47 |
:parent => {:tag => 'head'}
|
|
| 48 |
end |
|
| 24 | 49 |
end |
| test/integration/.svn/text-base/routing_test.rb.svn-base | ||
|---|---|---|
| 91 | 91 |
should_route :post, "/issues/1/quoted", :controller => 'journals', :action => 'new', :id => '1' |
| 92 | 92 |
|
| 93 | 93 |
should_route :get, "/issues/calendar", :controller => 'calendars', :action => 'show' |
| 94 |
should_route :put, "/issues/calendar", :controller => 'calendars', :action => 'update' |
|
| 95 | 94 |
should_route :get, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name' |
| 96 |
should_route :put, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'update', :project_id => 'project-name' |
|
| 97 | 95 |
|
| 98 | 96 |
should_route :get, "/issues/gantt", :controller => 'gantts', :action => 'show' |
| 99 |
should_route :put, "/issues/gantt", :controller => 'gantts', :action => 'update'
|
|
| 97 |
should_route :get, "/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :format => 'pdf'
|
|
| 100 | 98 |
should_route :get, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name' |
| 101 |
should_route :put, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'update', :project_id => 'project-name'
|
|
| 99 |
should_route :get, "/projects/project-name/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :project_id => 'project-name', :format => 'pdf'
|
|
| 102 | 100 |
|
| 103 | 101 |
should_route :get, "/issues/auto_complete", :controller => 'auto_completes', :action => 'issues' |
| 104 | 102 |
|
| ... | ... | |
| 197 | 195 |
should_route :delete, "/projects/1.xml", :controller => 'projects', :action => 'destroy', :id => '1', :format => 'xml' |
| 198 | 196 |
should_route :delete, "/projects/64/enumerations", :controller => 'project_enumerations', :action => 'destroy', :project_id => '64' |
| 199 | 197 |
end |
| 198 |
|
|
| 199 |
context "queries" do |
|
| 200 |
should_route :get, "/queries/new", :controller => 'queries', :action => 'new' |
|
| 201 |
should_route :get, "/projects/redmine/queries/new", :controller => 'queries', :action => 'new', :project_id => 'redmine' |
|
| 202 |
|
|
| 203 |
should_route :post, "/queries/new", :controller => 'queries', :action => 'new' |
|
| 204 |
should_route :post, "/projects/redmine/queries/new", :controller => 'queries', :action => 'new', :project_id => 'redmine' |
|
| 205 |
end |
|
| 200 | 206 |
|
| 201 | 207 |
context "repositories" do |
| 202 | 208 |
should_route :get, "/projects/redmine/repository", :controller => 'repositories', :action => 'show', :id => 'redmine' |
Also available in: Unified diff