睡月花儿

  • Home
  • About
  • coding
  • Tags86
  • Categories7
  • Posts870
  • Sitemap
  • Commonweal 404
  • Search
  • Table of Contents
  • Overview
戛戛Happy

戛戛Happy

后端, 操作系统, 互联网, 程序开发, Linux, 数据库, MySql, Golang, Ruby
RSS
Creative Commons

rspec expect to

Posted on 2011-07-19 In rspec

期望改变值或抛出异常

expect {}.to change {}.from().to()

expect {}.to raise_error(YourMenthodError)
  • Post author: 戛戛Happy
  • Post link: https://blog.gagahappy.cn/rspec-expect-to-change-value-or-raise-error/
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.
后端
rspec in controller integration with views
ruby 中 include 与 extend 区别
京ICP备10044755号
© 2009 – 2024 戛戛Happy
Powered by Hexo & NexT.Gemini