module CassandraCleaner::CqlRspecNotifications::Base
Public Class Methods
included(host)
click to toggle source
# File lib/cassandra_cleaner/cql_rspec_notifications.rb, line 7 def self.included(host) host.class_eval do alias_method :execute_without_notify, :execute alias_method :execute, :execute_with_notify end end
Public Instance Methods
notify_observers(table_name)
click to toggle source
# File lib/cassandra_cleaner/cql_rspec_notifications.rb, line 15 def notify_observers(table_name) notifiers = CassandraCleaner.rspec_notifiers notifiers.each{|n| n.receive(table_name)} if notifiers && table_name end