Re: [rspec-users] In spec/controller file not taking controller property

2010-11-13 Thread Arun Sharma
> 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

[rspec-users] In spec/controller file not taking controller property

2010-11-12 Thread Arun Sharma
> 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

Re: [rspec-users] In spec/controller file not taking controller property

2010-11-12 Thread David Chelimsky
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

Re: [rspec-users] In spec/controller file not taking controller property

2010-11-12 Thread Arun Sharma
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

Re: [rspec-users] In spec/controller file not taking controller property

2010-11-12 Thread David Chelimsky
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 > >

[rspec-users] In spec/controller file not taking controller property

2010-11-12 Thread Arun Sharma
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

Re: [rspec-users] In spec/controller file not taking controller property

2010-11-12 Thread Arun Sharma
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