diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index df0df47..1d1abfb 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -202,9 +202,7 @@ class CmsControllerTest < ActionController::TestCase a = profile.articles.build(:name => 'my-article') a.save! assert_difference Article, :count, -1 do - @request.env['HTTP_REFERER'] = url_for :controller => 'cms', :profile => profile.identifier, :action => 'index' post :destroy, :profile => profile.identifier, :id => a.id - assert_redirected_to :controller => 'cms', :profile => profile.identifier, :action => 'index' end end @@ -903,13 +901,6 @@ class CmsControllerTest < ActionController::TestCase assert_tag :tag => 'a', :content => 'New content' end - should 'offer confirmation to remove article' do - a = profile.articles.create!(:name => 'my-article') - @request.env['HTTP_REFERER'] = url_for :controller => 'cms', :profile => profile.identifier, :action => 'index' - post :destroy, :profile => profile.identifier, :id => a.id - assert_response :redirect - end - should 'display notify comments option' do a = profile.articles.create!(:name => 'test') get :edit, :profile => profile.identifier, :id => a.id -- libgit2 0.21.2