Sha256: 59fd4b7e40e6063e0a87e55d9cb72935dfc4af7ae08900251c380fc720737ca5

Contents?: true

Size: 457 Bytes

Versions: 18

Compression:

Stored size: 457 Bytes

Contents

require 'test_helper'

class LogTest < ActiveSupport::TestCase

  test 'smoke' do
    user = User.create! name: 'bob', email: 'bob@example.com', password: '123456789abc'
    account = user.qv_account

    log = account.logs.create! action: QuoVadis::Log::LOGIN_SUCCESS, ip: '1.2.3.4', metadata: {foo: 'bar'}

    assert_equal QuoVadis::Log::LOGIN_SUCCESS, log.action
    assert_equal '1.2.3.4', log.ip
    assert_equal 'bar', log.metadata['foo']
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
quo_vadis-2.2.4 test/models/log_test.rb
quo_vadis-2.2.2 test/models/log_test.rb
quo_vadis-2.2.1 test/models/log_test.rb
quo_vadis-2.2.0 test/models/log_test.rb
quo_vadis-2.1.11 test/models/log_test.rb
quo_vadis-2.1.10 test/models/log_test.rb
quo_vadis-2.1.9 test/models/log_test.rb
quo_vadis-2.1.8 test/models/log_test.rb
quo_vadis-2.1.7 test/models/log_test.rb
quo_vadis-2.1.6 test/models/log_test.rb
quo_vadis-2.1.5 test/models/log_test.rb
quo_vadis-2.1.4 test/models/log_test.rb
quo_vadis-2.1.3 test/models/log_test.rb
quo_vadis-2.1.2 test/models/log_test.rb
quo_vadis-2.1.1 test/models/log_test.rb
quo_vadis-2.1.0 test/models/log_test.rb
quo_vadis-2.0.2 test/models/log_test.rb
quo_vadis-2.0.1 test/models/log_test.rb