RSpec 文档...它藏在哪里?
很难找到RSpec-2(和rspec-rails)文档。具体来说,我想查找所有可用的匹配器...但是如何查找呢?
我尝试过:
- RSpec.info :过时 - RSpec 1.x
- rdoc.info :无论如何对我来说似乎没什么用。 (不完整?)
- RSpec-Relish :令人困惑。不完整?如何查找可用的匹配器?
- GitHub Wiki:分散的信息。无组织的。不完整?
是的,我知道这本书...但是,说真的,这不是网上的东西吗?
甚至尝试过 rake doc:plugins 但没有成功。太绿了,不知道为什么……
显然 rspec.rubyforge 上曾经有一些不错的 1.x 文档.org。但它们似乎早已消失……
这些文档藏在哪里?
Having a terrible time finding RSpec-2 (and rspec-rails) documentation. Specifically I want to look up all available Matchers... but how?
I've tried:
- RSpec.info : outdated - RSpec 1.x
- rdoc.info : seems useless, to me anyway. (incomplete?)
- RSpec-Relish : confusing. incomplete? how would one look up available Matchers?
- GitHub Wiki : scattered info. unorganized. incomplete?
Yes, I'm aware of The Book...but, seriously, isn't this stuff online?
Even tried rake doc:plugins
but it didn't work. Too green to know why...
apparently there used to be some decent 1.x docs on rspec.rubyforge.org. but they're appear to be long gone...
Where are these docs hiding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
第一个去的地方是官方 Relish 文档,他们已经有了显着的改进多年来,现在是我首先要看的地方。
在最初撰写此答案时,这个要点是可靠的。它包含以下匹配器:
The first place to go is the official Relish docs, they have gotten a significant improvement over the years and are now my first place to look.
At the time of writing this answer originally, this gist was solid. It contains matchers for the following:
不知道为什么你觉得 rdoc.info 没有用 - 这是那里的匹配器文档:
http://rubydoc.info/gems/rspec-expectations/2.0.1/RSpec/Matchers
可能您找错了地方;这些位于 RSpec::Expectations gem 中,它是从 Rspec 2 的核心中分离出来的。
Not sure why you feel rdoc.info isn't useful - here's the matcher docs there:
http://rubydoc.info/gems/rspec-expectations/2.0.1/RSpec/Matchers
It may be that you're looking in the wrong spot; these were in the RSpec::Expectations gem, which is split out from the core in Rspec 2.