method

build_name_from_options

rspec latest stable - Class: Spec::Mocks::Mock

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.2.8) is shown here.

build_name_from_options(options)
private

No documentation available.

# File lib/spec/mocks/mock.rb, line 59
      def build_name_from_options(options)
        vals = options.inject([]) {|coll, pair| coll << "#{pair.first}: #{pair.last.inspect}"}
        @name = '{' + vals.join(', ') + '}'
      end