Method: Bullshit::Case#run_method

Defined in:
lib/bullshit.rb

#run_method(bc_method) ⇒ Object

Run only pre_run and post_run methods. Yield to the block, if one was given.



896
897
898
899
900
901
902
903
904
# File 'lib/bullshit.rb', line 896

def run_method(bc_method)
  pre_run bc_method
  clock = self.class.clock.__send__(self.class.clock_method, bc_method) do
    __send__(bc_method.name)
  end
  bc_method.clock = clock
  post_run bc_method
  clock
end