Permalink
Browse files

Standardize deprecation warnings

  • Loading branch information...
1 parent dc32fd6 commit 0c84876115906ca25cf45482745c32231ca18de2 @joshuaclayton joshuaclayton committed Oct 9, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/factory_girl/factory.rb
@@ -19,7 +19,7 @@ def initialize(name, options = {}) #:nodoc:
end
def factory_name
- puts "WARNING: factory.factory_name is deprecated. Use factory.name instead."
+ $stderr.puts "DEPRECATION WARNING: factory.factory_name is deprecated; use factory.name instead."
name
end
@@ -192,8 +192,8 @@ def assert_valid_options(options)
if options[:default_strategy]
assert_valid_strategy(options[:default_strategy])
- puts "WARNING: default_strategy is deprecated."
- puts "Override to_create if you need to prevent a call to #save!."
+ $stderr.puts "DEPRECATION WARNING: default_strategy is deprecated."
+ $stderr.puts "Override to_create if you need to prevent a call to #save!."
end
end

0 comments on commit 0c84876

Please sign in to comment.