spec/spec_helper.rb in card-1.19.6 vs spec/spec_helper.rb in card-1.20.0
- old
+ new
@@ -35,9 +35,13 @@
end
CardSpecLoader.helper
class ActiveSupport::Logger
- def rspec msg
- Thread.current["logger-output"] << msg
+ def rspec msg, console_text=nil
+ if Thread.current["logger-output"]
+ Thread.current["logger-output"] << msg
+ else
+ puts console_text || msg
+ end
end
end