Sha256: 87e31a16cf657640ca087351f329e2ad06bfdba70b3b5b82a7be0e2780a77118
Contents?: true
Size: 943 Bytes
Versions: 2
Compression:
Stored size: 943 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' require 'admin/textfilters_controller' # Re-raise errors caught by the controller. class Admin::TextfiltersController; def rescue_action(e) raise e end; end class Admin::TextfiltersControllerTest < Test::Unit::TestCase fixtures :text_filters, :users def setup @controller = Admin::TextfiltersController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @request.session = { :user => users(:tobi) } end def test_new_without_filters post :new, :textfilter => { :name => 'filterx', :description => 'Filter X', :markup => 'markdown' } assert_response :redirect, :action => 'show' end def test_edit_without_filters post :edit, :id => 1, :textfilter => { :name => 'filterx', :description => 'Filter X', :markup => 'markdown' } assert_response :redirect, :action => 'show' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typo-4.1.1 | test/functional/admin/textfilters_controller_test.rb |
typo-4.1 | test/functional/admin/textfilters_controller_test.rb |