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  # (C)
   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!
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
no body help me? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 9, 2007 11:21 PM, Raecoo Cao <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > no body help me?Try the rspec list: http://rubyforge.org/pipermail/rspec-users/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thank you David Chelimsky wrote:> On Nov 9, 2007 11:21 PM, Raecoo Cao <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> >> no body help me? > > Try the rspec list: > > http://rubyforge.org/pipermail/rspec-users/-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---