2016-08-25 20 views
1

rspec-railsとguard-rspecを正常にインストールできました。私はウィンドウを使用していますので、インストールを成功させるためにはrspecのバージョンを古いものにする必要があります。はそのようなファイルを読み込めません - guard/rspec/dsl

# Gemfile 
group :development, :test do 
    # Call 'byebug' anywhere in the code to stop execution and get a debugger console 
    gem 'byebug', platform: :mri 

    gem 'postgresql' 
    gem 'rspec-rails', '2.8', :require => false #'2.8' 
end 

group :development do 
    gem 'web-console' 
    gem 'better_errors' 
    gem 'binding_of_caller' 
    gem 'ruby_dep', '1.4.0' 
    gem 'guard-rspec', require: false#'4.2.' 
end 

私はrails g rspec:installを走ってスペック-helper.rbはスペックの下で生成されました。 rails-helper.rbはありません。 .rspecファイルもあります。

私はguard init rspec

10:56:04 - INFO - Writing new Guardfile to C:/Users/nidaa_bugis/Documents/Ruby practices/workspace/Testing/Guardfile 
10:56:05 - INFO - rspec guard added to Guardfile, feel free to edit it 

を実行した後に次のことを得たが、私はbundle exec guardを実行したときに、私は誰もがこの問題を解決し、最終的には窓の上にガードとRSpecのを実行する方法を知っている

10:56:39 - INFO - Run 'gem install win32console' to use color on Windows 
10:56:39 - ERROR - Invalid Guardfile, original error is: 
> [#] 
> [#] cannot load such file -- guard/rspec/dsl, 
> [#] backtrace: 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 
> [#] (dsl)> C 

このエラーが出ますか?

答えて

-1

私は同様の問題がありましたが、私はUbuntu Linuxを持っています。ウィンドウについては考えていません。 私はちょうど最新バージョンに更新します、それぞれのリポジトリでそれを見つけることができます: guard-rspec しかし、これはあなたのケースでは不可能と思われます。 Windows 10をお使いの場合は、Linux beta environment

私の最初の回答はまだあなたや誰かのために有用であることを願っています。

乾杯!

トニオ

関連する問題