Note that there are some explanatory texts on larger screens.

plurals
  1. POcannot load such file -- /home/sandhya/robly/spec/factories (LoadError)
    primarykey
    data
    text
    <p>I'm using Factory_girl_rails in my new project which is in rails 3.2.8. I'm getting the above error. Can anyone please suggest me what to do.</p> <pre><code>/home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- /home/sandhya/robly/spec/factories (LoadError) from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require' from /home/sandhya/robly/spec/spec_helper.rb:6:in `&lt;top (required)&gt;' from /home/sandhya/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/sandhya/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /home/sandhya/robly/spec/models/address_spec.rb:1:in `&lt;top (required)&gt;' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run' from /home/sandhya/.rvm/gems/ruby-1.9.3-p0@robly/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun' </code></pre> <p>My gemfile goes like this:</p> <p>group :</p> <pre><code>test do gem 'rspec-rails' gem "factory_girl_rails" gem "capybara" end </code></pre> <p>and in my factories.rb I have</p> <pre><code>FactoryGirl.define do factory :address do |v| v.email "test@email.com" v.state "Karnataka" v.country "India" v.zip_code "560061" v.office_mobiel "9999999999" v.company "Some Company" v.city "Bangalore" end end </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload