# File test/support/test_helpers.rb, line 35 def create_admin(attributes={}) Admin.create!(valid_attributes(attributes)) end
# File test/support/test_helpers.rb, line 19 def create_user(attributes={}) User.create!(valid_attributes(attributes)) end
# File test/support/test_helpers.rb, line 27 def create_user_with_mailer(attributes={}) UserWithMailer.create!(valid_attributes(attributes)) end
# File test/support/test_helpers.rb, line 31 def new_admin(attributes={}) Admin.new(valid_attributes(attributes)) end
# File test/support/test_helpers.rb, line 15 def new_user(attributes={}) User.new(valid_attributes(attributes)) end
# File test/support/test_helpers.rb, line 23 def new_user_with_mailer(attributes={}) UserWithMailer.new(valid_attributes(attributes)) end
# File test/support/test_helpers.rb, line 2 def valid_attributes(attributes={}) { :username => "usertest", :email => generate_unique_email, :password => '12345678', :password_confirmation => '12345678' }.update(attributes) end