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

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