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

后端 未结 2 1640
再見小時候
再見小時候 2020-12-12 02:48

I\'m following codeschool\'s class on rspec. Installing worked fine. I made a file called rspec-zombie for the project. Fine. But when I tried rspec --init in powershell, I

相关标签:
2条回答
  • 2020-12-12 03:10

    This is a windows regression in RSpec 3.1 that we are working on:

    • https://github.com/rspec/rspec-support/issues/107
    • https://github.com/rspec/rspec-support/pull/109

    Above issues were fixed.

    0 讨论(0)
  • 2020-12-12 03:20

    Here's how I finally fixed this 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 are broken on Windows. Don't use them. Do this and rspec works just fine.

    0 讨论(0)
提交回复
热议问题