The symbol "subject" by default is an instance of the described class.
In some method testing I often want to set the subject to be a method
call to the instance, for example "city.parse_input()".

I tried to do

describe '#parse_input' do
subject{ subject.parse_input() } #returns hash
...
end

but I can't.

I want to ask where did I get the semantic of this subject command
wrong which prevent me from doing this. Thanks.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to