diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-21 03:19:22 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-21 03:19:22 +0100 |
commit | 3b29b7c3f65e0c3153fbed0d27f864aaf624a36d (patch) | |
tree | d20954ebbce516524dc3f83646cb5f46a92021a7 /spec/models | |
parent | 543ee94019b124387ef775c1312e40730a0d1cdd (diff) |
Replace STDERR.puts by $stderr.puts elsewhere, which is potentially more flexible (because STDERR is always the system standard error file descriptor, whereas $stderr can be replaced by some other ruby object to handle error output).
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/raw_email_spec.rb | 4 | ||||
-rw-r--r-- | spec/models/track_mailer_spec.rb | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/raw_email_spec.rb b/spec/models/raw_email_spec.rb index 75066bbcc..6f3a8acd6 100644 --- a/spec/models/raw_email_spec.rb +++ b/spec/models/raw_email_spec.rb @@ -23,8 +23,8 @@ describe User, "manipulating a raw email" do # @raw_email.data = "This \\ that" # @raw_email.save! # @raw_email.reload -# STDERR.puts @raw_email.data -# STDERR.puts "This \\ that" +# $stderr.puts @raw_email.data +# $stderr.puts "This \\ that" # @raw_email.data.should == "This \\ that" # end diff --git a/spec/models/track_mailer_spec.rb b/spec/models/track_mailer_spec.rb index 4649c4def..828904d02 100644 --- a/spec/models/track_mailer_spec.rb +++ b/spec/models/track_mailer_spec.rb @@ -129,9 +129,9 @@ describe TrackMailer do deliveries = ActionMailer::Base.deliveries if deliveries.size > 1 # debugging if there is an error deliveries.each do |d| - STDERR.puts "------------------------------" - STDERR.puts d.body - STDERR.puts "------------------------------" + $stderr.puts "------------------------------" + $stderr.puts d.body + $stderr.puts "------------------------------" end end deliveries.size.should == 1 |