Module: RunningMan::ActiveRecordBlock::TestClassMethods

Defined in:
lib/running_man/active_record_block.rb

Instance Method Summary collapse

Instance Method Details

#fixtures(&block) ⇒ Object

Runs this block once, which should insert records through ActiveRecord. Test Cases should only have one #fixtures call, and it should be at the first run callback.



12
13
14
# File 'lib/running_man/active_record_block.rb', line 12

def fixtures(&block)
  RunningMan::ActiveRecordBlock.new(block).setup(self)
end