Module: BcmsSupport::Test

Includes:
Shared
Defined in:
lib/bcms_support/test.rb

Constant Summary

Constants included from Shared

Shared::SEEDS_PATH, Shared::TABLES_WITH_SEED_DATA

Instance Method Summary collapse

Methods included from Shared

#publish_all_pages, #seed_bcms_data

Instance Method Details

#login_as(user) ⇒ Object



7
8
9
# File 'lib/bcms_support/test.rb', line 7

def (user)
  @request.session[:user_id] = user ? user.id : nil
end