method

subject

rspec latest stable - Class: Spec::Example::ExampleMethods

Method deprecated or moved

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

subject(# :nodoc: this is somewhat experimental)
public

No documentation available.

# File lib/spec/example/example_methods.rb, line 7
      def subject # :nodoc: this is somewhat experimental
        @subject ||= ( instance_variable_get(subject_variable_name) ||
                       instance_eval(&self.class.subject_block) ||
                       (described_class ? described_class.new : nil) )
      end