Let's raise the visibility of code documentation in Ruby! What is this about?

rspec/rspec-mocks

RSpec's 'test double' framework, with support for stubbing and mocking – Read the documentation

This page shows an evaluation of the documentation of rspec/rspec-mocks.

Each class, module, method, etc. is given a grade based on how complete the docs are.

The bar above shows the distribution of these grades.

Seems really good
A
RSpec::Mocks::ExampleMethods#receive_message_chain
A
BasicObject#stub_chain
A
RSpec::Mocks::ExampleMethods#instance_double
A
RSpec::Mocks::ExampleMethods#object_double
A
RSpec::Mocks::ExampleMethods#class_double
Show 59 more ...
A
RSpec::Mocks::ExampleMethods#double
A
BasicObject
A
Class
A
RSpec::Mocks.expect_message
A
RSpec::Mocks.allow_message
A
RSpec::Mocks::Constant#to_s
A
RSpec::Mocks::Configuration#syntax=
A
RSpec::Mocks
A
RSpec::Mocks::ExampleMethods#have_received
A
RSpec:: #yield_receiver_to_any_instance_implementation_blocks=
A
RSpec::Mocks::ArgumentListMatcher#initialize
A
RSpec::Mocks::ArgumentMatchers#anything
A
RSpec::Mocks::ExampleMethods#hide_const
A
RSpec::Mocks::ArgumentMatchers#any_args
A
RSpec::Mocks::Configuration#initialize
A
RSpec::Mocks::ArgumentMatchers#boolean
A
RSpec::Mocks::ArgumentMatchers#no_args
A
RSpec::Mocks::Constant#original_value=
A
RSpec::Mocks::Constant#original_value
A
RSpec::Mocks::Configuration#syntax
A
RSpec::Mocks::Constant.original
A
RSpec::Mocks::ArgumentMatchers
A
RSpec::Mocks::ConstantMutator
A
RSpec::Mocks::ExampleMethods
A
RSpec::Mocks::Configuration
A
RSpec::Mocks::Constant#name
A
RSpec::Mocks::TestDouble
A
RSpec::Mocks::Constant
A
RSpec:: #patch_marshal_to_support_partial_doubles=
A
RSpec:: #allow_message_expectations_on_nil
A
RSpec:: #verify_doubled_constant_names=
A
RSpec::Mocks::Configuration#transfer_nested_constants=
A
RSpec::Mocks::Configuration#verify_partial_doubles=
A
RSpec::Mocks::TestDouble#as_null_object
A
RSpec::Mocks.with_temporary_scope
A
RSpec::Mocks::TestDouble#freeze
A
RSpec::Mocks::TestDouble#==
A
RSpec::Mocks.configuration
A
RSpec::Mocks.teardown
A
RSpec::Mocks.verify
A
RSpec::Mocks.setup
A
RSpec::Mocks::ExampleMethods#expect_any_instance_of
A
RSpec::Mocks::ExampleMethods#allow_any_instance_of
A
RSpec::Mocks::ExampleMethods#receive_messages
A
RSpec::Mocks::ExampleMethods#stub_const
A
RSpec::Mocks::ExampleMethods#receive
A
RSpec::Mocks::ExampleMethods#expect
A
RSpec::Mocks::ExampleMethods#allow
A
RSpec::Mocks::ConstantMutator.hide
A
RSpec::Mocks::ConstantMutator.stub
A
RSpec::Mocks::ArgumentListMatcher
A
BasicObject#should_not_receive
A
BasicObject#should_receive
A
BasicObject#as_null_object
A
BasicObject#unstub
A
Class#any_instance
A
BasicObject#stub
A
RSpec
A
RSpec::Mocks::Version
Proper documentation present
B
RSpec::Mocks::ArgumentMatchers#hash_excluding
B
RSpec::Mocks::ArgumentMatchers#instance_of
B
RSpec::Mocks::ArgumentMatchers#kind_of
B
RSpec::Mocks::ArgumentMatchers#array_including
B
RSpec::Mocks::ArgumentMatchers#hash_including
Show 3 more ...
B
RSpec::Mocks::ArgumentMatchers#duck_type
B
RSpec:: #add_stub_and_should_receive_to
B
RSpec::Mocks::TestDouble#initialize
Needs work
Undocumented

Let's raise the visibility of documentation in Ruby!

This page is for rspec/rspec-mocks and is part of a project called "Inch Pages", showing documentation measurements provided by Inch. Inch Pages also provides a badge: (not counting low priority objects)

Can I have my own badges?

Sure!

What is the goal of this?

I really think that posting badges for documentation in READMEs will benefit you (because people can see that your project is well documented) and our community in general by improving the visibility of documentation.

Let's start a discussion, let's raise the visibility of documentation, let's talk.

Suggestions, feedback, critique: Hit me up on Twitter or via issue.

Fork me on GitHub