Last active
          April 10, 2018 09:34 
        
      - 
      
- 
        Save bsylvain/807cacf2698ab2037d3f7ae3b17a242b to your computer and use it in GitHub Desktop. 
    factory bot error
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | FactoryBot.define do | |
| factory :ownership do | |
| transient do | |
| transient_debug_test_name nil | |
| end | |
| user | |
| association :good,factory: :good_produit | |
| pricing | |
| association :period ,datepublication: evaluator.transient_debug_test_name | |
| shop Shop.all.first | |
| end | 
  
    
      This file contains hidden or 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
    
  
  
    
  | NoMethodError: undefined method `transient_debug_test_name' for #<FactoryBot::Declaration::Implicit:0x0055fca3f181c8> | |
| /home/sylvain/dev/placedemarche/spec/factories/ownership_factories.rb:9:in `block (2 levels) in <top (required)>' | |
| /home/sylvain/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/factory_bot-4.8.2/lib/factory_bot/syntax/default.rb:18:in `instance_eval' | |
| /home/sylvain/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/factory_bot-4.8.2/lib/factory_bot/syntax/default.rb:18:in `factory' | |
| /home/sylvain/dev/placedemarche/spec/factories/ownership_factories.rb:2:in `block in <top (required)>' | |
| /home/sylvain/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/factory_bot-4.8.2/lib/factory_bot/syntax/default.rb:49:in `instance_eval' | |
| /home/sylvain/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/factory_bot-4.8.2/lib/factory_bot/syntax/default.rb:49:in `run' | |
| /home/sylvain/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/factory_bot-4.8.2/lib/factory_bot/syntax/default.rb:7:in `define' | |
| /home/sylvain/dev/placedemarche/spec/factories/ownership_factories.rb:1:in `<top (required)>' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment