class ChefSpec::Matchers::ResourceMatcher

def correct_phase?

def correct_phase?
  if @compile_time
    resource.performed_action(@expected_action)[:compile_time]
  elsif @converge_time
    resource.performed_action(@expected_action)[:converge_time]
  else
    true
  end
end