Skip to content

Instantly share code, notes, and snippets.

@berkes
Created December 13, 2010 16:48
Show Gist options
  • Save berkes/739212 to your computer and use it in GitHub Desktop.
Save berkes/739212 to your computer and use it in GitHub Desktop.
Error factory_girl
/home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require': /home/ber/Documenten/WBR_webschuurrails/sample_app/spec/factories.rb:3: invalid multibyte char (US-ASCII) (SyntaxError)
/home/ber/Documenten/WBR_webschuurrails/sample_app/spec/factories.rb:3: invalid multibyte char (US-ASCII)
/home/ber/Documenten/WBR_webschuurrails/sample_app/spec/factories.rb:3: syntax error, unexpected $end, expecting keyword_end
user.name "Bèr Kessels"
^
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `block in require'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/factory_girl-1.3.2/lib/factory_girl/factory.rb:307:in `block in find_definitions'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/factory_girl-1.3.2/lib/factory_girl/factory.rb:305:in `each'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/factory_girl-1.3.2/lib/factory_girl/factory.rb:305:in `find_definitions'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/factory_girl_rails-1.0/lib/factory_girl_rails/railtie.rb:11:in `block in <class:Railtie>'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/application/finisher.rb:46:in `block in <module:Finisher>'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `instance_exec'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/initializable.rb:25:in `run'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/initializable.rb:50:in `block in run_initializers'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `each'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/initializable.rb:49:in `run_initializers'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/application.rb:134:in `initialize!'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/railties-3.0.1/lib/rails/application.rb:77:in `method_missing'
from /home/ber/Documenten/WBR_webschuurrails/sample_app/config/environment.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/ber/Documenten/WBR_webschuurrails/sample_app/spec/spec_helper.rb:8:in `block in <top (required)>'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/spork-0.8.4/lib/spork.rb:23:in `prefork'
from /home/ber/Documenten/WBR_webschuurrails/sample_app/spec/spec_helper.rb:4:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/ber/Documenten/WBR_webschuurrails/sample_app/spec/models/user_spec.rb:1:in `<top (required)>'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in `load'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in `block in load_spec_files'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in `map'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in `load_spec_files'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:18:in `run'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:55:in `run_in_process'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:44:in `run'
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:10:in `block in autorun'
Factory.define :user do |user|
user.name "Bèr Kessels"
user.email "ber@example.com"
user.password "s3cr3t"
user.password_confirmation "s3cr3t"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment