Sha256: 5b71d749462d20c23d332afbdf7d81177947a6da399173458b40e5a7e1539a3e

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

def sign_out!
  ApplicationController.class_eval <<-STRING
    def current_user
      nil
    end

    helper_method :current_user
  STRING
end

def sign_in!(options={})
  ApplicationController.class_eval <<-STRING
    def current_user
      User.find_or_create_by_login("forem_user")
    end

    helper_method :current_user
  STRING
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prusswan-forem-0.0.2 spec/support/dummy_login.rb