Ruby Flare

Your awesome Tagline

7 notes

Clean rspec output

I like my rspec progress dots to remain undisturbed by output generated by the application eg puts, restarting/reindexing sphinx, prince. I use the silence_stream rails kernel method to keep things quiet:

silence_stream(STDOUT) { Users.import }

(Source: api.rubyonrails.org)

Filed under rspec

  1. rubyloveinfo reblogged this from rubyflare
  2. rubyflare posted this