Permalink
Browse files

Fix RDoc typos

  • Loading branch information...
1 parent 49283ee commit a9fd289c03706a9fc307a24dfd3890acdf55cdf9 @dchelimsky dchelimsky committed Feb 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/rspec/core/configuration.rb
@@ -543,14 +543,14 @@ def alias_it_should_behave_like_to(new_name, report_label = '')
# config.filter_run_including :foo => 'bar'
# config.filter_run_including :foo => /^ba/
# config.filter_run_including :foo => lambda {|v| v == 'bar'}
- # config.filter_run_including :foo => lambda {|v,m| metadata[:foo] == 'bar'}
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
#
# # given a proc with an arity of 1, the lambda is passed the value related to the key, e.g.
# config.filter_run_including :foo => lambda {|v| v == 'bar'}
#
# # given a proc with an arity of 2, the lambda is passed the value related to the key,
# # and the metadata itself e.g.
- # config.filter_run_including :foo => lambda {|v,m| metadata[:foo] == 'bar'}
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
#
# # with treat_symbols_as_metadata_keys_with_true_values = true
# filter_run_including :foo # same as filter_run_including :foo => true
@@ -601,14 +601,14 @@ def inclusion_filter
# config.filter_run_excluding :foo => 'bar'
# config.filter_run_excluding :foo => /^ba/
# config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
- # config.filter_run_excluding :foo => lambda {|v,m| metadata[:foo] == 'bar'}
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
#
# # given a proc with an arity of 1, the lambda is passed the value related to the key, e.g.
# config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
#
# # given a proc with an arity of 2, the lambda is passed the value related to the key,
# # and the metadata itself e.g.
- # config.filter_run_excluding :foo => lambda {|v,m| metadata[:foo] == 'bar'}
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
#
# # with treat_symbols_as_metadata_keys_with_true_values = true
# filter_run_excluding :foo # same as filter_run_excluding :foo => true

0 comments on commit a9fd289

Please sign in to comment.