Created
March 19, 2015 20:52
-
-
Save zmackie/2ca57c41c6f9ce3c80e6 to your computer and use it in GitHub Desktop.
FactoryGirl Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- initialize_schema_migrations_table() | |
-> 0.0050s | |
rake aborted! | |
FactoryGirl::DuplicateDefinitionError: Factory already registered: item | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/decorator.rb:10:in `method_missing' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/decorator/disallows_duplicates_registry.rb:6:in `register' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl.rb:85:in `block in register_factory' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl.rb:84:in `each' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl.rb:84:in `register_factory' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:20:in `factory' | |
/Users/zanderm/apps/thingr-rails/spec/factories/items.rb:4:in `block in <top (required)>' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `instance_eval' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `run' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:7:in `define' | |
/Users/zanderm/apps/thingr-rails/spec/factories/items.rb:3:in `<top (required)>' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:in `load' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:in `block in load' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:in `load' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:19:in `each' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:15:in `each' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions' | |
/Users/zanderm/apps/thingr-rails/lib/tasks/development_seeds.rake:7:in `block (2 levels) in <top (required)>' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval' | |
/Users/zanderm/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>' | |
Tasks: TOP => dev:prime | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment