spec/rackamole/logger_spec.rb in rackamole-0.3.7 vs spec/rackamole/logger_spec.rb in rackamole-0.3.8
- old
+ new
@@ -1,6 +1,6 @@
-require File.join(File.dirname(__FILE__), %w[.. spec_helper] )
+require File.expand_path(File.join(File.dirname(__FILE__), %w[.. spec_helper]))
require 'stringio'
describe Rackamole::Logger do
it "raises an error if the email addresses passed in is empty" do
@@ -22,10 +22,10 @@
end
it "logs to an IO stream if given" do
io = StringIO.new
l = Rackamole::Logger.new( { :log_file => io, :logger_name => "Test4" })
- l.info "This is a test io message"
+ l.info "This is a test io message"
io.string.split("\n").should have(1).item
io.string.should =~ /This is a test io message/
io.string.should =~ /INFO/
end