rspec expect to

期望改变值或抛出异常

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

您可能感兴趣的文章

  1. rspec mock 多次
  2. Passing parameters to a shared example group
  3. Aliasing “it_should_behave_like” to “it_has_behavior”
  4. Mock Receive Counts
  5. rspec it 描述相同也可以正常执行测试
  6. rspec 检查类别方法
  7. rspec controller 出错
  8. rspec in controller integration with views
分享到Twitter 分享到新浪微博 分享到开心 分享到QQ空间 分享到人人 分享到鲜果 分享到豆瓣 分享到网易微博 分享到搜狐微博
You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

Powered by WordPress | Find Wireless Deals at BestInCellPhones.com. | Thanks to iCellPhoneDeals.com Free Cell Phones, Find Highest CD Rates and Incinerador De Grasa Revisión