Hi Marcus,
I''ve been happy with a file naming convention for the specs then using
the slashed convention for the controller_name for the controller
context.
in spec/controllers/sms_messages_controller_spec.rb:
require File.dirname(__FILE__) + ''/../spec_helper''
describe Sms::MessagesController, " when asking for help" do
controller_name ''sms/messages''
fixtures :users
setup do
post :create, :body => ''help''
end
it "should send the usage message" do
...
end
end
script/spec -v
RSpec-0.8.3 (r1591) - BDD for Ruby
http://rspec.rubyforge.org/
On 4/19/07, Marcus Irven <marcus at marcusirven.com>
wrote:> I''m stucking trying to figure out how to write a spec for a
namespaced
> controller. Any help is appreciated.
>
> Thanks,
> Marcus
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>