On 12.4.2008, at 22.24, newbie wrote:

Hey Jarkko,

Thanks for the feedback. I tried your suggestion and it doesn't seem
to work.

What doesn't work?



To quickly recap I'm just testing in my controller that this works

def index
@entries = current_user.entries
end

describe "on the main page" do
it "should show all the current entries for the user" do
   get :index
   assigns[:entries].should == @entries
end

I don't see you logging in a user anywhere.

//jarkko

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to