# Got different results from D&D Agile book on test of unit test

**URL:** <https://www.ruby-forum.com/t/got-different-results-from-d-d-agile-book-on-test-of-unit-test/131766>\
**Category:** Rails\
**Created:** [March 13, 2008, 2:52am UTC](https://www.ruby-forum.com/t/got-different-results-from-d-d-agile-book-on-test-of-unit-test/131766 "2008-03-13T02:52:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xeno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/e19b73/32.png) [@xeno](https://www.ruby-forum.com/u/xeno)\
**Post date:** [March 13, 2008, 2:52am UTC](https://www.ruby-forum.com/t/got-different-results-from-d-d-agile-book-on-test-of-unit-test/131766/1 "2008-03-13T02:52:02Z")

</div>

$ ruby test/unit/pagespec\_test.rb  
Loaded suite test/unit/pagespec\_test  
Started  
.E…  
Finished in 0.502818 seconds.

1. Error:  
testservers(ActionController::TestCase):  
ArgumentError: wrong number of arguments (0 for 1)  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
test\_case  
.rb:48:in `initialize' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ test_case .rb:48:in`new’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
test\_case  
.rb:48:in `setup_without_fixtures' /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ fixtures.rb :979:in`full\_setup’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
testing/d  
efault.rb:7:in `run’

6 tests, 1 assertions, 0 failures, 1 errors  
—snip----  
This doesn’t appear to be pointing to any of my code, but rather to  
rails itself. Line 48 starts as follows near the end of test\_case.rb:

```
  @controller = self.class.controller_class.new
  @request = TestRequest.new
  @response = TestResponse.new
end

```

end  
end  
—snip—  
Even if it’s me, it would be nice if the diagnostic message were more  
helpful.
