module RSpec::Core::Subject

def attribute_of_subject

def attribute_of_subject
  if using_attribute?
    example.description.split('.').inject(original_subject) do |target, method|
      target.send(method)
    end
  end
end