Sha256: a41438c1c77f09cf45f9bdf157be062fd0d58cb5a3b8ca2f8956a62b0c7ea85a

Contents?: true

Size: 540 Bytes

Versions: 27

Compression:

Stored size: 540 Bytes

Contents

require "test_helper"
require "active_support/log_subscriber/test_helper"
require "cassandra_object/log_subscriber"

class CassandraObject::LogSubscriberTest < CassandraObject::TestCase
  include ActiveSupport::LogSubscriber::TestHelper

  def setup
    super

    CassandraObject::LogSubscriber.attach_to :cassandra_object
  end

  def test_cql_notification
    Issue.execute_cql "SELECT * FROM Issues"

    wait

    assert_equal 1, @logger.logged(:debug).size
    assert_match "SELECT * FROM Issues", @logger.logged(:debug)[0]
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
gotime-cassandra_object-4.11.5 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.11.4 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.11.3 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.11.2 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.11.1 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.11.0 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.10.5 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.10.4 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.10.3 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.10.2 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.10.1 test/unit/log_subscriber_test.rb
cassandra_object_rails-0.0.1 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.10.0 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.9.2 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.9.1 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.9.0 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.8.1 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.8.0 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.7.3 test/unit/log_subscriber_test.rb
gotime-cassandra_object-4.7.2 test/unit/log_subscriber_test.rb