RSpec Testing Problem with Namespace

hi all,

i use Rspec 1.0.8 and Rspec on Rails testing my project,but the
Namespace
error to happen.

my project have two controller,follow:

app/controllers/admin/forums_controller.rb
app/controllers/forums_controller.rb

and two spec

spec/controllers/admin/forums_controller_spec.rb(A)
spec/controllers/forums_controller_spec.rb(B)

forum_controller_spec.rb(A)'s code:

require File.dirname(FILE) + ‘/…/…/spec_helper’
describe Admin::ForumsController do
it “should use Admin::ForumsController” do
controller.should be_an_instance_of(Admin::ForumsController)
puts controller # ©
end

D

it “create new forum” do
controller.should be_an_instance_of(Admin::ForumsController)
put ‘create’,{:forums => {:parent_id=>‘0’,:name=>‘forum tests’}}
response.should redirect_to(:action => “index”)
flash[:notice].should ==‘create ok.’
end
end

run rake spec:autotest command ,the ## D will load
ForumController(B) , but must load ForumController(A),What happen?
who can help me!

On Nov 9, 2007 11:21 PM, Raecoo C. [email protected]
wrote:

no body help me?

Try the rspec list:

http://rubyforge.org/pipermail/rspec-users/

no body help me?

thank you

David C. wrote:

On Nov 9, 2007 11:21 PM, Raecoo C. [email protected]
wrote:

no body help me?

Try the rspec list:

http://rubyforge.org/pipermail/rspec-users/