ruby - rspec --init not working/ `mkd ir': Invalid argument - ./C: (Errno::EINVAL) -


i'm following codeschool's class on rspec. installing worked fine. made file called rspec-zombie project. fine. when tried rspec --init in powershell, got unholy error message. i'm under impression there supposed files made inside directory, aren't there. follows.

c:\users\roman\the-odin-project\rspec-zombie> rspec --init   create   .rspec c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker.rb:17:in `mkd ir': invalid argument - ./c: (errno::einval)         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:17:in `block in mkdir_p'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:13:in `each'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:13:in `mkdir_p'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/project_initializer.rb :33:in `copy_template'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/project_initializer.rb :22:in `run'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/option_parser.rb:81:in  `block (2 levels) in parser'         c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1360:in `call'         c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1360:in `block in parse_in_order'         c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1347:in `catch'         c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1347:in `parse_in_order'         c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1341:in `order!'         c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1432:in `permute!'         c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1453:in `parse!'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/option_parser.rb:16:in  `parse'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/option_parser.rb:8:in `parse'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/configuration_options. rb:120:in `command_line_options'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/configuration_options. rb:154:in `custom_options_file'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/configuration_options. rb:112:in `file_options'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/configuration_options. rb:44:in `organize_options'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/configuration_options. rb:14:in `initialize'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/runner.rb:58:in `new'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/runner.rb:58:in `run'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/runner.rb:37:in `invok e'         c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/exe/rspec:4:in `<top (required)>'         c:/railsinstaller/ruby1.9.3/bin/rspec:23:in `load'         c:/railsinstaller/ruby1.9.3/bin/rspec:23:in `<main>' 

here's how fixed crap:

gem uninstall rspec gem uninstall rspec-core rspec-expectations rspec-mocks rspec-support gem install rspec -v 2.14.1 

basically, newer versions of rspec broken on windows. don't use them. , rspec works fine.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -