module RSpec::Core::Pending

def pending_no_warning(*args)

def pending_no_warning(*args)
  return self.class.before(:each) { pending(*args) } unless RSpec.current_example
  options = args.last.is_a?(Hash) ? args.pop : {}
  message = args.first || NO_REASON_GIVEN
  if options[:unless] || (options.has_key?(:if) && !options[:if])
    return block_given? ? yield : nil
  end
  RSpec.current_example.metadata[:pending] = true
  RSpec.current_example.metadata[:execution_result][:pending_message] = message
  RSpec.current_example.execution_result[:pending_fixed] = false
  if block_given?
    begin
      result = begin
                 yield
                 RSpec.current_example.example_group_instance.instance_eval { verify_mocks_for_rspec }
               end
      RSpec.current_example.metadata[:pending] = false
    rescue Exception => e
      RSpec.current_example.execution_result[:exception] = e
    ensure
      teardown_mocks_for_rspec
    end
    if result
      RSpec.current_example.execution_result[:pending_fixed] = true
      raise PendingExampleFixedError.new
    end
  end
  raise SkipDeclaredInExample.new(message)
end