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
このエラーが出ますか?