Class: CassandraCleaner::RspecNotifier
- Inherits:
-
Object
- Object
- CassandraCleaner::RspecNotifier
- Defined in:
- lib/cassandra_cleaner/rspec_notifier.rb
Instance Method Summary collapse
-
#initialize ⇒ RspecNotifier
constructor
A new instance of RspecNotifier.
- #receive(table_name) ⇒ Object
- #show_info ⇒ Object
- #tables ⇒ Object
Constructor Details
#initialize ⇒ RspecNotifier
Returns a new instance of RspecNotifier.
3 4 5 |
# File 'lib/cassandra_cleaner/rspec_notifier.rb', line 3 def initialize @column_families = [] end |
Instance Method Details
#receive(table_name) ⇒ Object
7 8 9 |
# File 'lib/cassandra_cleaner/rspec_notifier.rb', line 7 def receive(table_name) @column_families << table_name end |
#show_info ⇒ Object
11 12 13 14 |
# File 'lib/cassandra_cleaner/rspec_notifier.rb', line 11 def show_info puts "\nColumn Families used in tests" pp @column_families.uniq end |
#tables ⇒ Object
16 17 18 |
# File 'lib/cassandra_cleaner/rspec_notifier.rb', line 16 def tables @column_families.uniq end |