ruby on rails - My Rspec won't work -


this error getting while trying bundle exec rspec spec/requests/static_pages_spec.rb:

no drb server 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"                           ^     /users/hetzerbr/sample_app/spec/requests/static_pages_spec.rb:1     /users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'     /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'     /users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'     /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'     /users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'     /users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:66:in `run'     /users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'     /users/hetzerbr/.rvm/gems/ruby-1.8.7-p374/bin/ruby_noexec_wrapper:14 

i'm using mac osx10.8 brew install , rvm , ruby 1.8.7. in middle of chapter 5 of ruby on rails tutorial fixed comment below however, getting error:

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

the problem using rocket notation assign value, should using = (equals) sign. in spec/spec_helper.rb, find line config.fixture_path , modify follows:

config.fixture_path = "#{::rails.root}/spec/fixtures" 

and try running tests again.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -