Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Rspec fails after installing factory_json in a rails project #2

Open
eduardschaeli opened this issue May 19, 2015 · 0 comments
Open

Comments

@eduardschaeli
Copy link
Contributor

factory_girl v 4.4.0
factory_girl_rails v 4.4.1

Rspec always fails with the same error:

/Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/factory_girl-4.4.0/lib/factory_girl/strategy_syntax_method_registrar.rb:19:in `block in define_singular_strategy_method': wrong number of arguments (0 for 1+) (ArgumentError)
        from /Users/eduard/Sites/local.ch/location-app/spec/support/factories/local/components/presentations.rb:11:in `block (2 levels) in <top (required)>'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:18:in `instance_eval'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:18:in `factory'
        from /Users/eduard/Sites/local.ch/location-app/spec/support/factories/local/components/presentations.rb:10:in `block in <top (required)>'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `instance_eval'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `run'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:7:in `define'
        from /Users/eduard/Sites/local.ch/location-app/spec/support/factories/local/components/presentations.rb:3:in `<top (required)>'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `block in require'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require'
        from /Users/eduard/Sites/local.ch/location-app/spec/spec_helper.rb:9:in `block in <top (required)>'
        from /Users/eduard/Sites/local.ch/location-app/spec/spec_helper.rb:9:in `each'
        from /Users/eduard/Sites/local.ch/location-app/spec/spec_helper.rb:9:in `<top (required)>'
        from /Users/eduard/Sites/local.ch/location-app/spec/features/contacts_spec.rb:2:in `require'
        from /Users/eduard/Sites/local.ch/location-app/spec/features/contacts_spec.rb:2:in `<top (required)>'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `block in load_spec_files'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `each'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load_spec_files'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96:in `setup'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84:in `run'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69:in `run'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:37:in `invoke'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/gems/rspec-core-3.1.7/exe/rspec:4:in `<top (required)>'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/bin/rspec:23:in `load'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/bin/rspec:23:in `<main>'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/bin/ruby_executable_hooks:15:in `eval'
        from /Users/eduard/.rvm/gems/ruby-2.1.5@location-app/bin/ruby_executable_hooks:15:in `<main>'
@eduardschaeli eduardschaeli changed the title Rspec fails after install factory_json in a rails project Rspec fails after installing factory_json in a rails project May 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant