Here's the steps I followed:
Generated the test code
rails test
mate test
cd test
script/generate scaffold thing
rake db:create
script/server
Modified things_controller.rb index and new:
def index
end
def new
session[:user] = 5
redirect_to(things_path)
end
Set index.html.erb
Sorry, I'm new here, but isn't this totally irrelevant to RSpec in every way?
On 1/2/08, Glenn Ford [EMAIL PROTECTED] wrote:
Here's the steps I followed:
Generated the test code
rails test
mate test
cd test
script/generate scaffold thing
rake db:create
script/server
Modified
Whoops, you're very right, this isn't the RoR list! Oh well it's the
only one I ever use. My bad! Let's look at it this way... my spec's
are failing because I can't use session! What do I do? :)
On Jan 2, 2008, at 11:36 PM, Giles Bowkett wrote:
Sorry, I'm new here, but isn't this
Whoops, you're very right, this isn't the RoR list! Oh well it's the
only one I ever use. My bad! Let's look at it this way... my spec's
are failing because I can't use session! What do I do? :)
Stub like there's no tomorrow?
--
Giles Bowkett
Podcast: http://hollywoodgrit.blogspot.com