Module: SocialStream::TestHelpers

Defined in:
lib/social_stream/test_helpers.rb,
lib/social_stream/base/autoload.rb,
lib/social_stream/test_helpers/controllers.rb

Defined Under Namespace

Modules: Controllers

Instance Method Summary collapse

Instance Method Details

#represent(subject) ⇒ Object

Represent this subject



4
5
6
7
8
9
# File 'lib/social_stream/test_helpers.rb', line 4

def represent(subject)
  session[:subject_type] = subject.class.to_s
  session[:subject_id] = subject.id

  subject
end