Change @stderr.lines to @stderr.each in spec_state.rb

IO#lines has been deprecated in Ruby 2.0.  Changing lines to each fixes the issue and is backwards compatible with Rubies 1.8.7 and 1.9.3.