0

これは、bundle exec rspec spec/requests/static_pages_spec.rb を実行しようとしているときに発生するエラーです。

No DRb server is running. Running in local process instead ...
/Users/hetzerbr/sample_app/spec/requests/static_pages_spec.rb:1:in `require': /Users/hetzerbr/sample_app/spec/spec_helper.rb:29: syntax error, unexpected tASSOC, expecting kEND (SyntaxError)
    config.fixture_path => "#{::Rails.root}/spec/fixtures"
                          ^
    from /Users/hetzerbr/sample_app/spec/requests/static_pages_spec.rb:1
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:66:in `run'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/bin/ruby_noexec_wrapper:14

brew install と RVM と ruby​​ 1.8.7 で Mac Osx10.8 を使用しています。私は ruby​​ on rails チュートリアルの第 5 章の途中です。FIXED BY COMMENT BELOW ですが、今では次のエラーが発生しています。

rvm/gems/ruby-1.8.7-p374/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:177:in `require': no such file to load -- iconv (LoadError)
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:177
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/execjs-1.4.0/lib/execjs/runtimes.rb:3:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/execjs-1.4.0/lib/execjs/runtimes.rb:3
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/execjs-1.4.0/lib/execjs.rb:2:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/execjs-1.4.0/lib/execjs.rb:2
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/coffee-script-2.2.0/lib/coffee_script.rb:1
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/coffee-script-2.2.0/lib/coffee-script.rb:1
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/hetzerbr/sample_app/config/application.rb:13
    from /Users/hetzerbr/sample_app/config/environment.rb:2:in `require'
    from /Users/hetzerbr/sample_app/config/environment.rb:2
    from /Users/hetzerbr/sample_app/spec/spec_helper.rb:10:in `require'
    from /Users/hetzerbr/sample_app/spec/spec_helper.rb:10
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/spork-0.9.0/lib/spork.rb:24:in `prefork'
    from /Users/hetzerbr/sample_app/spec/spec_helper.rb:4
    from /Users/hetzerbr/sample_app/spec/requests/static_pages_spec.rb:1:in `require'
    from /Users/hetzerbr/sample_app/spec/requests/static_pages_spec.rb:1
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:66:in `run'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'
    from /Users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/bin/ruby_noexec_wrapper:14
4

1 に答える 1