Commit 159de064d0e7d920ecb6475a55abcb22e865b284
1 parent
24950c67
Exists in
master
and in
27 other branches
rails3: fix assert_template that references rhtml
Showing
6 changed files
with
13 additions
and
13 deletions
Show diff stats
test/functional/chat_controller_test.rb
test/functional/cms_controller_test.rb
... | ... | @@ -1166,7 +1166,7 @@ class CmsControllerTest < ActionController::TestCase |
1166 | 1166 | |
1167 | 1167 | get :new, :profile => c.identifier |
1168 | 1168 | assert_response :forbidden |
1169 | - assert_template 'access_denied.rhtml' | |
1169 | + assert_template 'access_denied' | |
1170 | 1170 | end |
1171 | 1171 | |
1172 | 1172 | should 'allow user with permission create an article in community' do |
... | ... | @@ -1188,7 +1188,7 @@ class CmsControllerTest < ActionController::TestCase |
1188 | 1188 | |
1189 | 1189 | get :edit, :profile => c.identifier, :id => a.id |
1190 | 1190 | assert_response :forbidden |
1191 | - assert_template 'access_denied.rhtml' | |
1191 | + assert_template 'access_denied' | |
1192 | 1192 | end |
1193 | 1193 | |
1194 | 1194 | should 'not allow user edit article if he is owner but has no publish permission' do |
... | ... | @@ -1199,7 +1199,7 @@ class CmsControllerTest < ActionController::TestCase |
1199 | 1199 | |
1200 | 1200 | get :edit, :profile => c.identifier, :id => a.id |
1201 | 1201 | assert_response :forbidden |
1202 | - assert_template 'access_denied.rhtml' | |
1202 | + assert_template 'access_denied' | |
1203 | 1203 | end |
1204 | 1204 | |
1205 | 1205 | should 'allow user edit article if he is owner and has publish permission' do |
... | ... | @@ -1670,7 +1670,7 @@ class CmsControllerTest < ActionController::TestCase |
1670 | 1670 | |
1671 | 1671 | get :upload_files, :profile => c.identifier, :parent_id => a.id |
1672 | 1672 | assert_response :forbidden |
1673 | - assert_template 'access_denied.rhtml' | |
1673 | + assert_template 'access_denied' | |
1674 | 1674 | end |
1675 | 1675 | |
1676 | 1676 | should 'filter profile folders to select' do | ... | ... |
test/functional/content_viewer_controller_test.rb
... | ... | @@ -169,7 +169,7 @@ class ContentViewerControllerTest < ActionController::TestCase |
169 | 169 | |
170 | 170 | get :view_page, :profile => community.identifier, :page => [ folder.path ] |
171 | 171 | |
172 | - assert_template 'access_denied.rhtml' | |
172 | + assert_template 'access_denied' | |
173 | 173 | end |
174 | 174 | |
175 | 175 | should 'show private content to profile moderators' do |
... | ... | @@ -250,7 +250,7 @@ class ContentViewerControllerTest < ActionController::TestCase |
250 | 250 | |
251 | 251 | get :view_page, :profile => 'test_profile', :page => [ 'my-intranet' ] |
252 | 252 | |
253 | - assert_template 'access_denied.rhtml' | |
253 | + assert_template 'access_denied' | |
254 | 254 | end |
255 | 255 | |
256 | 256 | should 'not give access to private articles if logged in but not member' do |
... | ... | @@ -260,7 +260,7 @@ class ContentViewerControllerTest < ActionController::TestCase |
260 | 260 | |
261 | 261 | get :view_page, :profile => 'test_profile', :page => [ 'my-intranet' ] |
262 | 262 | |
263 | - assert_template 'access_denied.rhtml' | |
263 | + assert_template 'access_denied' | |
264 | 264 | end |
265 | 265 | |
266 | 266 | should 'not give access to private articles if logged in and only member' do |
... | ... | @@ -272,7 +272,7 @@ class ContentViewerControllerTest < ActionController::TestCase |
272 | 272 | |
273 | 273 | get :view_page, :profile => 'test_profile', :page => [ 'my-intranet' ] |
274 | 274 | |
275 | - assert_template 'access_denied.rhtml' | |
275 | + assert_template 'access_denied' | |
276 | 276 | end |
277 | 277 | |
278 | 278 | should 'give access to private articles if logged in and moderator' do | ... | ... |
test/functional/manage_products_controller_test.rb
... | ... | @@ -31,7 +31,7 @@ class ManageProductsControllerTest < ActionController::TestCase |
31 | 31 | login_as :user_test |
32 | 32 | get 'index', :profile => @enterprise.identifier |
33 | 33 | assert :success |
34 | - assert_template 'access_denied.rhtml' | |
34 | + assert_template 'access_denied' | |
35 | 35 | end |
36 | 36 | |
37 | 37 | should "get index" do |
... | ... | @@ -198,7 +198,7 @@ class ManageProductsControllerTest < ActionController::TestCase |
198 | 198 | @enterprise.save! |
199 | 199 | get :index, :profile => @enterprise.identifier |
200 | 200 | |
201 | - assert_template 'not_found.rhtml' | |
201 | + assert_template 'not_found' | |
202 | 202 | end |
203 | 203 | |
204 | 204 | should 'show top level product categories for the user to choose' do | ... | ... |
test/functional/profile_members_controller_test.rb
... | ... | @@ -29,7 +29,7 @@ class ProfileMembersControllerTest < ActionController::TestCase |
29 | 29 | get 'index', :profile => 'test_enterprise' |
30 | 30 | |
31 | 31 | assert_response 403 |
32 | - assert_template 'access_denied.rhtml' | |
32 | + assert_template 'access_denied' | |
33 | 33 | end |
34 | 34 | |
35 | 35 | should 'access index' do | ... | ... |
test/integration/exception_notification_test.rb