(使用 Hartl 的教程)我通过第 3 章使用 rspec 进行测试没有任何问题,但是在我完成该部分、合并分支等之后 - 我无法再运行 rspec 测试。我在第 4 章尝试进行第一组测试,但出现以下错误:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.1/lib/rspec /core/configuration.rb:746:in
load': C:/Sites/rails_projects/sample_app/spec/re quests/static_pages_spec.rb:61: syntax error, unexpected $end, expecting keyword _end (SyntaxError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1 0.1/lib/rspec/core/configuration.rb:746:in
block in load_spec_files' from C:/ RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1 0.1/lib/rspec/core/configuration.rb:746:inmap' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1 0.1/lib/rspec/core/configuration.rb:746:in
load_spec_files' 来自 C:/RailsInstaller/Ruby1.9.3/ lib/ruby/gems/1.9.1/gems/rspec-core-2.1 0.1/lib/rspec/core/command_line.rb:22:inrun' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1 0.1/lib/rspec/core/runner.rb:69:in
run' 来自 C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/ 1.9.1/gems/rspec-core-2.1 0.1/lib/rspec/core/runner.rb:10:in `block in autorun'
可能是什么问题呢?我尝试运行 rails generate rspec:install 并再次尝试但没有运气。