Here is my test:
[code]require File.dirname(__FILE__) + '/../../test_helper'
require 'admin/author_controller'
class Admin::AuthorControllerTest; def rescue_action(e) raise e end; end
class Admin::AuthorControllerTest < Test::Unit::TestCase
def setup
@controller = AuthorController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
def test_new
get :new
assert_template 'admin/author/new'
assert_tag 'h1', :content => 'Create new author'
assert_tag 'form', :attributes => {:action => '/admin/author/create'}
end
end
[/code]
Thank you for any help. I'd gladly take a working example if you don't
know what's wrong with this specific code.
--
Posted via http://www.ruby-forum.com/.