Skip to content

Commit

Permalink
Remove factory_name
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Mar 16, 2012
1 parent 7623531 commit 037c39f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions lib/factory_girl/factory.rb
Expand Up @@ -18,11 +18,6 @@ def initialize(name, options = {}) #:nodoc:
delegate :add_callback, :declare_attribute, :to_create, :define_trait,
:defined_traits, :inherit_traits, :processing_order, :to => :@definition

def factory_name
$stderr.puts "DEPRECATION WARNING: factory.factory_name is deprecated; use factory.name instead."
name
end

def build_class #:nodoc:
@build_class ||= if class_name.is_a? Class
class_name
Expand Down
4 changes: 0 additions & 4 deletions spec/factory_girl/factory_spec.rb
Expand Up @@ -12,10 +12,6 @@
@factory.name.should == @name
end

it "responds to factory_name" do
@factory.factory_name.should == @name
end

it "has a build class" do
@factory.build_class.should == @class
end
Expand Down

0 comments on commit 037c39f

Please sign in to comment.