method
build_description_from

RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Example::ExampleGroupMethods
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
build_description_from(*args)
private
Hide source
# File lib/spec/example/example_group_methods.rb, line 274 def build_description_from(*args) text = args.inject("") do |description, arg| description << " " unless (description == "" || arg.to_s =~ /^(\s|\.|#)/) description << arg.to_s end text == "" ? nil : text end