> thanks for reply
> now this is working
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
>
My rspec file is not taking controller property.
> In controller instance variable defined as :
@portal_news=PortalNews.new
> In rspec file my code is
get :create,:portal_news=>{:user_id=>101}
assigns[:portal_news].user_id.should=101
> I getting error is
NoMethodError in 'PortalNewsController
On Nov 12, 2010, at 11:11 PM, Arun Sharma wrote:
> thanks for reply
>> ---
>
>> i commented all lines of code which you mentioned but still this code is
>> not
> working.Same code is working in other dummy application.
>
>> I have installed rails 2.3.5 and rspec 2.1.0 and rspec-rails 2.1.0
thanks for reply
>---
> i commented all lines of code which you mentioned but still this code is
> not
working.Same code is working in other dummy application.
> I have installed rails 2.3.5 and rspec 2.1.0 and rspec-rails 2.1.0 and I also
installed plugin
>
git://github.com/dchelimsk
On Nov 12, 2010, at 3:56 AM, Arun Sharma wrote:
> I am working on Rspec for Controller testing.I am initial leve of
> rspec.I have a problem that in Spec/controller directory rspec file is
> not taking controller property as (instance varibale,flash notice)
> My controller code is as follow
>
>
I am working on Rspec for Controller testing.I am initial leve of
rspec.I have a problem that in Spec/controller directory rspec file is
not taking controller property as (instance varibale,flash notice)
My controller code is as follow
class PortalNewsController < ApplicationController
def inde
I am waiting for reply
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users