ruby on rails - rspec 3.1 gem initialize error -



ruby on rails - rspec 3.1 gem initialize error -

i have spent hours trying resolve rspec path, gem not initializing. on earth below gibberish means? read out loud twice brain not computing right now. pointers appreciated:

michel-morels-imac:search michelcmorel$ rspec spec/lib/zombie_spec.rb /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1357:in `<class:configuration>': uninitialized constant rspec::support::os (nameerror) /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:32:in `<module:core>' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:6:in `<module:rspec>' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:5:in `<top (required)>' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core.rb:10:in `require_relative' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core.rb:10:in `block in <top (required)>' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-support-3.1.0/lib/rspec/support.rb:19:in `call' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-support-3.1.0/lib/rspec/support.rb:19:in `block in define_optimized_require_for_rspec' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core.rb:38:in `block in <top (required)>' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core.rb:38:in `each' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core.rb:38:in `<top (required)>' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' /users/michelcmorel/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/exe/rspec:3:in `<top (required)>' /users/michelcmorel/.rbenv/versions/2.1.2/bin/rspec:23:in `load' /users/michelcmorel/.rbenv/versions/2.1.2/bin/rspec:23:in `<main>'

edit** gemfile content is:

source 'https://rubygems.org' # bundle border rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.6' # utilize sqlite3 database active record gem 'sqlite3' # utilize scss stylesheets gem 'sass-rails', '~> 4.0.3' # utilize uglifier compressor javascript assets gem 'uglifier', '>= 1.3.0' # utilize coffeescript .js.coffee assets , views gem 'coffee-rails', '~> 4.0.0' # see https://github.com/sstephenson/execjs#readme more supported runtimes # gem 'therubyracer', platforms: :ruby # utilize jquery javascript library gem 'jquery-rails' # turbolinks makes next links in web application faster. read more: https://github.com/rails/turbolinks gem 'turbolinks' # build json apis ease. read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates api under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc # spring speeds development keeping application running in background. read more: https://github.com/rails/spring gem 'spring', group: :development # utilize activemodel has_secure_password # gem 'bcrypt', '~> 3.1.7' # utilize unicorn app server # gem 'unicorn' # utilize capistrano deployment # gem 'capistrano-rails', group: :development # utilize debugger # gem 'debugger', group: [:development, :test]

and gemfile.lock content is:

gem remote: https://rubygems.org/ specs: actionmailer (4.1.6) actionpack (= 4.1.6) actionview (= 4.1.6) mail service (~> 2.5, >= 2.5.4) actionpack (4.1.6) actionview (= 4.1.6) activesupport (= 4.1.6) rack (~> 1.5.2) rack-test (~> 0.6.2) actionview (4.1.6) activesupport (= 4.1.6) builder (~> 3.1) erubis (~> 2.7.0) activemodel (4.1.6) activesupport (= 4.1.6) builder (~> 3.1) activerecord (4.1.6) activemodel (= 4.1.6) activesupport (= 4.1.6) arel (~> 5.0.0) activesupport (4.1.6) i18n (~> 0.6, >= 0.6.9) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.1) tzinfo (~> 1.1) arel (5.0.1.20140414130214) builder (3.2.2) coffee-rails (4.0.1) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) coffee-script (2.3.0) coffee-script-source execjs coffee-script-source (1.8.0) erubis (2.7.0) execjs (2.2.2) hike (1.2.3) i18n (0.6.11) jbuilder (2.2.4) activesupport (>= 3.0.0, < 5) multi_json (~> 1.2) jquery-rails (3.1.2) railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) json (1.8.1) mail service (2.6.3) mime-types (>= 1.16, < 3) mime-types (2.4.3) minitest (5.4.2) multi_json (1.10.1) rack (1.5.2) rack-test (0.6.2) rack (>= 1.0) rails (4.1.6) actionmailer (= 4.1.6) actionpack (= 4.1.6) actionview (= 4.1.6) activemodel (= 4.1.6) activerecord (= 4.1.6) activesupport (= 4.1.6) bundler (>= 1.3.0, < 2.0) railties (= 4.1.6) sprockets-rails (~> 2.0) railties (4.1.6) actionpack (= 4.1.6) activesupport (= 4.1.6) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) rake (10.3.2) rdoc (4.1.2) json (~> 1.4) sass (3.2.19) sass-rails (4.0.4) railties (>= 4.0.0, < 5.0) sass (~> 3.2.2) sprockets (~> 2.8, < 2.12) sprockets-rails (~> 2.0) sdoc (0.4.1) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) spring (1.1.3) sprockets (2.11.3) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) sprockets-rails (2.2.0) actionpack (>= 3.0) activesupport (>= 3.0) sprockets (>= 2.8, < 4.0) sqlite3 (1.3.10) thor (0.19.1) thread_safe (0.3.4) tilt (1.4.1) turbolinks (2.5.1) coffee-rails tzinfo (1.2.2) thread_safe (~> 0.1) uglifier (2.5.3) execjs (>= 0.3.0) json (>= 1.8.0) platforms ruby dependencies coffee-rails (~> 4.0.0) jbuilder (~> 2.0) jquery-rails rails (= 4.1.6) sass-rails (~> 4.0.3) sdoc (~> 0.4.0) spring sqlite3 turbolinks uglifier (>= 1.3.0)

the reply came cupakromer github "can seek dropping other rspec-xyz gems gemfile leaving rspec-rails? tell bundler require other necessary gems. run bundle update rspec-rails" worked me :)

ruby-on-rails ruby rspec rspec-rails

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -