test/test_helper.rb
# Add more helper methods to be used by all tests here...
Add more helper methods to be used by all tests here
Add more helper methods to be used by all tests here
def login_as(role)
    user = FactoryGirl.create(
      :user, 
      person: FactoryGirl.create(:person),
      role: role.to_s
    )
    session[:user_id] = user.id
    user
  end
def login_as ( role ) user = FactoryGirl . create ( :user , person : FactoryGirl . create ( :person ) , role : role . to_s ) session [ :user_id ] = user . id user end
Add more helper methods to be used by all tests here...
Add more helper methods to be used by all tests here ...
role
<not_specific>