Skip to content

Commit

Permalink
Standardize deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Oct 9, 2011
1 parent dc32fd6 commit 0c84876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/factory_girl/factory.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0c84876

Please sign in to comment.