Tag: 后卫

如何运行一个单一的testing在RSpec警卫?

我使用guard-rspec在我的文件发生变化时自动运行必要的rspectesting,我喜欢它的工作原理。 但是,当我用多个testingdebugging一个文件时,有时我只想要重新运行一个单独的testing。 例如,从命令行使用rspec: rspec spec/requests/my_favorite_spec.rb:100 这将仅运行my_favorite_spec.rb中第100行的单个规范。 我试着把上面的内容input到控制台,但是它只是运行了所有的testing,就像我刚刚按下input一样。 在控制台中是否有另一种语法来运行单个规范?

Gem :: Specification.reset期间未解决的规格:

启动Guard时,我得到这个输出: $ guard WARN: Unresolved specs during Gem::Specification.reset: lumberjack (>= 1.0.2) ffi (>= 0.5.0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. 这是什么意思,我该如何解决? Guardfile的内容: guard 'livereload' do watch(%r{.+\.(css|js|html)$}) end guard 'sass', :input => 'css', :style => :compressed, :extension => '.min.css'