Hi,
  I'm new to rspec.
  How could I transform the Unit:Tests code like
  
def test_logout
    login
    get :logout
    assert_not_logged_in
 end
 def assert_not_logged_in
    assert_block { session["user"].nil? }
 end

that a test method invoke another test method,to repec code.

Should I put them in one code example? or there is other way?

Thanks!



_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to