Sha256: 76db9e3559e7ec92702caaa5cb4381ccfd1781adfff1a1b0b3900836bd0fd557

Contents?: true

Size: 551 Bytes

Versions: 2

Compression:

Stored size: 551 Bytes

Contents

module BonaFideHelper
  class User
    COOKIE_NAME = "user_cookie"
    TEST_TOKEN = "test_token"

    def self.authenticate(token)
      case token
      when BonaFideHelper::User::TEST_TOKEN.to_s
        return true
      when "session_spec_test"
        raise StandardError, "RAISE_FOR_SUCCESS"
      end

      false
    end

    def self.true_method
      true
    end

    def self.false_method
      false
    end
  end
  
  class Application < Rails::Application
    config.active_support.deprecation = :stderr
    config.threadsafe!
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bona_fide-0.1.1 spec/bona_fide_helper.rb
bona_fide-0.1.0 spec/bona_fide_helper.rb