Skip to content

Commit

Permalink
refactor: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jul 7, 2012
1 parent 2c60898 commit f1e2024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/core/example.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def run(example_group_instance, reporter)
@example_group_instance = nil @example_group_instance = nil


begin begin
assign_auto_description assign_generated_description
rescue Exception => e rescue Exception => e
set_exception(e, "while assigning the example description") set_exception(e, "while assigning the example description")
end end
Expand Down Expand Up @@ -308,7 +308,7 @@ def run_after_each
@example_group_instance.teardown_mocks_for_rspec @example_group_instance.teardown_mocks_for_rspec
end end


def assign_auto_description def assign_generated_description
return unless RSpec.configuration.expecting_with_rspec? return unless RSpec.configuration.expecting_with_rspec?
if metadata[:description].empty? and !pending? if metadata[:description].empty? and !pending?
metadata[:description] = RSpec::Matchers.generated_description metadata[:description] = RSpec::Matchers.generated_description
Expand Down

0 comments on commit f1e2024

Please sign in to comment.