[rspec-users] Undefined method 'post'

Amit Kulkarni lists at ruby-forum.com
Thu Mar 4 10:08:10 EST 2010

Hello all,
I am facing a strange problem.
I have generated rspec for a particular project.Similarly created a spec
controller.Under that controller i have written post :create action
When i run my spec i get an error as
"undefined method `post' for

Strangely my models are working fine.My rails version is 2.3.5 and rspec
version is 1.1.12
I tried in some other project,in that i am getting error as "Undefined
method controller for nil class"
Earlier it was working fine,but dont know what is the problem.
Please suggest.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list