# rake error

**URL:** <https://discuss.rubyonrails.org/t/rake-error/20702>\
**Category:** rubyonrails-talk\
**Created:** [November 21, 2007, 5:58pm UTC](https://discuss.rubyonrails.org/t/rake-error/20702 "2007-11-21T17:58:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Mead](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@James\_Mead](https://discuss.rubyonrails.org/u/James_Mead)\
**Post date:** [November 21, 2007, 5:58pm UTC](https://discuss.rubyonrails.org/t/rake-error/20702/1 "2007-11-21T17:58:23Z")

</div>

I haven't looked into it in any depth, but I wonder if your problem could be that your test classes have exactly the same name. So when the second file is loaded, you will be modifying the first test class.

---

<div class="post-metadata">

**Author:** ![James\_Mead](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@James\_Mead](https://discuss.rubyonrails.org/u/James_Mead)\
**Post date:** [November 21, 2007, 10:27pm UTC](https://discuss.rubyonrails.org/t/rake-error/20702/2 "2007-11-21T22:27:13Z")

</div>

I suspect you \*can\* have two test cases testing the same controller as long as the class names of the two \*TestCases\* are different.

class SummaryControllerOneTest \< Test::Unit::TestCase class SummaryControllerAnotherTest \< Test::Unit::TestCase
