[rspec-users] cucumber is_admin? testing

2011-11-23 Thread Alex Whiteland
I don't know where to put this post, but theme of this more similar to my issue. I have trite signin system, like this: > ApplicationController: include SessionsHelper private helper_method :current_user def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread Alex Whiteland
Aslak, but if I haven't Google Account? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread Alex Whiteland
> that is added to cucumber's world does not have access to your > application > controller's @current_user variable. So, I understand this. But how I can avoid this defect? If I paste def is_admin? into application_controller near current_user method, I wouldn't can World(ApplicationController)

Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread Alex Whiteland
Aslak, I send a message to group email, but I haven't answer yet. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread Alex Whiteland
> What email did you send to? cu...@googlegroups.com > I'm assuming you're using a regular mail client? I work from browser. I sent to you from awhiteland.37.com (first . replace to @) -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing

Re: [rspec-users] cucumber is_admin? testing

2011-11-27 Thread Alex Whiteland
bump! I sent letter 3 day ago. No email answer, no new theme in group, no new message here. But new message in group exists. Why? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/ma

Re: [rspec-users] cucumber is_admin? testing

2011-11-28 Thread Alex Whiteland
I sent copy of my issue to cu...@googlegroups.com from awhitel...@hushmail.com -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber is_admin? testing

2011-11-28 Thread Alex Whiteland
code to sessions_helper, then session[:user_id] wouldn't work. Regards, Alex Whiteland > end -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber is_admin? testing

2011-11-28 Thread Alex Whiteland
> 1. actually log in (i.e. create a user, go to the login screen and log > in). You can wrap this in a single step definition like "Given I am > logged in as 'admin'", but you still have to go through the app within > the step definition. I do this. Here is example: Scenario: guest becomes a user

Re: [rspec-users] cucumber is_admin? testing

2011-12-02 Thread Alex Whiteland
Hi, Andrew. I resent msg now. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber is_admin? testing

2011-12-07 Thread Alex Whiteland
hmm... I changed 2 servers to friend with google. wtf? first - 37.com, second - hushmail.com Maybe, google think it is spam and sends to it folder. Can yo find my letters in it? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list