[rspec-users] Where do I find help about user roles?

James Byrne lists at ruby-forum.com
Tue Mar 24 14:37:31 EDT 2009


James Byrne wrote:

> When /(?:add|create) an?(?:new)? user named "(.*)"/ do |name|
>   User.find_by_username(name).destroy

s/b
  User.find_by_username(name).destroy if User.find_by_username(name)

Sorry about that.
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list