Sha256: 2882ecb5089558cad8033d1d4562046ea30f43399428bd5b7b4f570312cdb92f

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

require 'test_helper'

module Alondra

  class ConnectionTest < ActiveSupport::TestCase

    test "it is assigned an UUI on creation" do
      assert MockConnection.new.uuid.present?
    end

    test "can find if there is a session" do
      session = {:user_id => 10}
      connection = MockConnection.new(session)

      assert_equal session, connection.session
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alondra-0.1.1 test/models/connection_test.rb
alondra-0.1.0 test/models/connection_test.rb
alondra-0.0.4 test/models/connection_test.rb
alondra-0.0.3 test/models/connection_test.rb