Module: Kraut::Rails::Spec::UserHelper

Defined in:
lib/kraut/rails/spec/user_helper.rb

Instance Method Summary collapse

Instance Method Details

#create_userObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/kraut/rails/spec/user_helper.rb', line 9

def create_user
  Kraut::Session.new(
    :username => "user",
    :password => "secret",
    :principal => Kraut::Principal.new(
      :name => "user",
      :password => "secret",
      :token => "token"
    )
  )
end