Class: BeetleETL::Testing::TestWrapper

Inherits:
Struct
  • Object
show all
Defined in:
lib/beetle_etl/testing/test_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • the current value of config



3
4
5
# File 'lib/beetle_etl/testing/test_wrapper.rb', line 3

def config
  @config
end

#table_namesObject

Returns the value of attribute table_names

Returns:

  • the current value of table_names



3
4
5
# File 'lib/beetle_etl/testing/test_wrapper.rb', line 3

def table_names
  @table_names
end

Instance Method Details

#run(block) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/beetle_etl/testing/test_wrapper.rb', line 5

def run(block)
  begin
    create_stages
    block.call
  ensure
    drop_stages
  end
end