Revision 442:753f1380d6bc test/integration

View differences:

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'
test/integration/api_test/.svn/all-wcprops
1
K 25
2
svn:wc:ra_dav:version-url
3
V 50
4
/svn/!svn/ver/4729/trunk/test/integration/api_test
5
END
6
token_authentication_test.rb
7
K 25
8
svn:wc:ra_dav:version-url
9
V 79
10
/svn/!svn/ver/4509/trunk/test/integration/api_test/token_authentication_test.rb
11
END
12
users_test.rb
13 1
K 25
14 2
svn:wc:ra_dav:version-url
15 3
V 64
16
/svn/!svn/ver/4729/trunk/test/integration/api_test/users_test.rb
4
/svn/!svn/ver/5946/branches/1.2-stable/test/integration/api_test
17 5
END
18
time_entries_test.rb
19
K 25
20
svn:wc:ra_dav:version-url
21
V 71
22
/svn/!svn/ver/4509/trunk/test/integration/api_test/time_entries_test.rb
23
END
24
http_basic_login_test.rb
25
K 25
26
svn:wc:ra_dav:version-url
27
V 75
28
/svn/!svn/ver/4509/trunk/test/integration/api_test/http_basic_login_test.rb
29
END
30
projects_test.rb
31
K 25
32
svn:wc:ra_dav:version-url
33
V 67
34
/svn/!svn/ver/4645/trunk/test/integration/api_test/projects_test.rb
35
END
36
issues_test.rb
37
K 25
38
svn:wc:ra_dav:version-url
39
V 65
40
/svn/!svn/ver/4509/trunk/test/integration/api_test/issues_test.rb
41
END
42
http_basic_login_with_api_token_test.rb
43
K 25
44
svn:wc:ra_dav:version-url
45
V 90
46
/svn/!svn/ver/4509/trunk/test/integration/api_test/http_basic_login_with_api_token_test.rb
47
END
48
news_test.rb
49
K 25
50
svn:wc:ra_dav:version-url
51
V 63
52
/svn/!svn/ver/4509/trunk/test/integration/api_test/news_test.rb
53
END
54
disabled_rest_api_test.rb
55
K 25
56
svn:wc:ra_dav:version-url
57
V 76
58
/svn/!svn/ver/4509/trunk/test/integration/api_test/disabled_rest_api_test.rb
59
END
test/integration/api_test/.svn/entries
1 1
10
2 2

  
3 3
dir
4
4993
5
http://redmine.rubyforge.org/svn/trunk/test/integration/api_test
4
6000
5
http://redmine.rubyforge.org/svn/branches/1.2-stable/test/integration/api_test
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
7d38bb393dfe949c081c7e9ee2ea0caa
37 37
2010-12-12T23:24:34.194336Z
38 38
4509
......
66 66

  
67 67

  
68 68

  
69
2011-03-03T11:05:08.000000Z
70
5cca5d3e833a26e12978491298f55859
71
2011-01-16T15:23:11.666065Z
72
4729
73
jplang
69
2011-06-06T13:18:32.000000Z
70
7a9592ae362d7037a34c8d52a83bfa94
71
2011-04-01T00:46:29.119996Z
72
5270
73
tmaruyama
74 74
has-props
75 75

  
76 76

  
......
92 92

  
93 93

  
94 94

  
95
9688
95
9690
96 96

97 97
time_entries_test.rb
98 98
file
......
100 100

  
101 101

  
102 102

  
103
2011-03-03T11:05:08.000000Z
104
1704d0f93701094c0ebf95183e078b5f
105
2010-12-12T23:24:34.194336Z
106
4509
107
jbbarth
103
2011-06-06T13:18:32.000000Z
104
f3362e09e4ef210beddc057c74493b74
105
2011-05-29T07:24:15.223638Z
106
5946
107
jplang
108 108
has-props
109 109

  
110 110

  
......
126 126

  
127 127

  
128 128

  
129
5254
129
5607
130 130

131 131
http_basic_login_test.rb
132 132
file
......
134 134

  
135 135

  
136 136

  
137
2011-03-03T11:05:08.000000Z
137
2011-06-06T13:15:00.000000Z
138 138
92abe10e190b64c60afc90866336aa7c
139 139
2010-12-12T23:24:34.194336Z
140 140
4509
......
168 168

  
169 169

  
170 170

  
171
2011-03-03T11:05:08.000000Z
171
2011-06-06T13:15:00.000000Z
172 172
31d08ba85b57fcdb41e06c1f367de87e
173 173
2011-01-06T20:36:31.826591Z
174 174
4645
......
202 202

  
203 203

  
204 204

  
205
2011-03-03T11:05:08.000000Z
205
2011-06-06T13:15:00.000000Z
206 206
a4c38f734c93d99d52de27d41a380756
207 207
2010-12-12T23:24:34.194336Z
208 208
4509
......
236 236

  
237 237

  
238 238

  
239
2011-03-03T11:05:08.000000Z
239
2011-06-06T13:15:00.000000Z
240 240
445e18c4a9d648b99d948eac4e750480
241 241
2010-12-12T23:24:34.194336Z
242 242
4509
......
270 270

  
271 271

  
272 272

  
273
2011-03-03T11:05:08.000000Z
273
2011-06-06T13:15:00.000000Z
274 274
bee85bcaab5d8fb5f90a64ad4ac32e3c
275 275
2010-12-12T23:24:34.194336Z
276 276
4509
......
304 304

  
305 305

  
306 306

  
307
2011-03-03T11:05:08.000000Z
307
2011-06-06T13:15:00.000000Z
308 308
24e8e5b1544016befedeea49b8fb5cb5
309 309
2010-12-12T23:24:34.194336Z
310 310
4509
test/integration/api_test/.svn/text-base/time_entries_test.rb.svn-base
32 32
      assert_tag :tag => 'time_entries',
33 33
        :child => {:tag => 'time_entry', :child => {:tag => 'id', :content => '2'}}
34 34
    end
35
    
36
    context "with limit" do
37
      should "return limited results" do
38
        get '/time_entries.xml?limit=2', {}, :authorization => credentials('jsmith')
39
        assert_response :success
40
        assert_equal 'application/xml', @response.content_type
41
        assert_tag :tag => 'time_entries',
42
          :children => {:count => 2}
43
      end
44
    end
35 45
  end
36 46
  
37 47
  context "GET /time_entries/2.xml" do
test/integration/api_test/.svn/text-base/users_test.rb.svn-base
141 141
            
142 142
          assert_response :unprocessable_entity
143 143
          assert_equal 'application/xml', @response.content_type
144
          assert_tag 'errors', :child => {:tag => 'error', :content => "Firstname can't be blank"}
144
          assert_tag 'errors', :child => {:tag => 'error', :content => "First name can't be blank"}
145 145
        end
146 146
      end
147 147
      
......
226 226
            
227 227
          assert_response :unprocessable_entity
228 228
          assert_equal 'application/xml', @response.content_type
229
          assert_tag 'errors', :child => {:tag => 'error', :content => "Firstname can't be blank"}
229
          assert_tag 'errors', :child => {:tag => 'error', :content => "First name can't be blank"}
230 230
        end
231 231
      end
232 232
      
test/integration/api_test/time_entries_test.rb
32 32
      assert_tag :tag => 'time_entries',
33 33
        :child => {:tag => 'time_entry', :child => {:tag => 'id', :content => '2'}}
34 34
    end
35
    
36
    context "with limit" do
37
      should "return limited results" do
38
        get '/time_entries.xml?limit=2', {}, :authorization => credentials('jsmith')
39
        assert_response :success
40
        assert_equal 'application/xml', @response.content_type
41
        assert_tag :tag => 'time_entries',
42
          :children => {:count => 2}
43
      end
44
    end
35 45
  end
36 46
  
37 47
  context "GET /time_entries/2.xml" do
test/integration/api_test/users_test.rb
141 141
            
142 142
          assert_response :unprocessable_entity
143 143
          assert_equal 'application/xml', @response.content_type
144
          assert_tag 'errors', :child => {:tag => 'error', :content => "Firstname can't be blank"}
144
          assert_tag 'errors', :child => {:tag => 'error', :content => "First name can't be blank"}
145 145
        end
146 146
      end
147 147
      
......
226 226
            
227 227
          assert_response :unprocessable_entity
228 228
          assert_equal 'application/xml', @response.content_type
229
          assert_tag 'errors', :child => {:tag => 'error', :content => "Firstname can't be blank"}
229
          assert_tag 'errors', :child => {:tag => 'error', :content => "First name can't be blank"}
230 230
        end
231 231
      end
232 232
      
test/integration/issues_test.rb
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/layout_test.rb
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/lib/.svn/entries
1 1
10
2 2

  
3 3
dir
4
4993
5
http://redmine.rubyforge.org/svn/trunk/test/integration/lib
4
6000
5
http://redmine.rubyforge.org/svn/branches/1.2-stable/test/integration/lib
6 6
http://redmine.rubyforge.org/svn
7 7

  
8 8

  
test/integration/lib/redmine/.svn/entries
1 1
10
2 2

  
3 3
dir
4
4993
5
http://redmine.rubyforge.org/svn/trunk/test/integration/lib/redmine
4
6000
5
http://redmine.rubyforge.org/svn/branches/1.2-stable/test/integration/lib/redmine
6 6
http://redmine.rubyforge.org/svn
7 7

  
8 8

  
......
32 32

  
33 33

  
34 34

  
35
2011-03-03T11:05:08.000000Z
35
2011-06-06T13:15:00.000000Z
36 36
302d4ea0c07530cc9d48b971849df66d
37 37
2010-12-12T23:24:34.194336Z
38 38
4509
......
66 66

  
67 67

  
68 68

  
69
2011-03-03T11:05:08.000000Z
69
2011-06-06T13:15:00.000000Z
70 70
782f5d377a79dea8a580dcd902121b37
71 71
2010-12-23T09:42:33.439630Z
72 72
4560
test/integration/routing_test.rb
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