• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rspec / rspec-expectations / 633 / 8
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2013 05:43PM UTC
Files 37
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jul 2013 05:20PM UTC coverage: 98.868% (+0.001%) from 98.867%
rbx-19mode

Pull #295

travis-ci

yujinakayama
Support do..end style block with raise_error matcher

Currently raise_error matcher accepts only {..} style blocks,
because {..} blocks have higher precedence over do..end blocks.
This is a common pitfall.

expect { do_something }.to raise_error do |error|
  expect(error.some_value).to eq(1)
end

In this case, the do..end block is taken by the #to method
and the #raise_error gets no block.

This patch makes raise_error matcher to use the block passed
as an argument from #to if it did not take any block directly.
Pull Request #295: Support do..end style block with raise_error matcher

1485 of 1502 relevant lines covered (98.87%)

40.86 hits per line

Source Files on job 633.8 (rbx-19mode)
  • Tree
  • List 0
  • Changed 12
  • Source Changed 1
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 633
  • Travis Job 633.8
  • 398f8f56 on github
  • Prev Job for rbx-19mode on master (#631.8)
  • Next Job for rbx-19mode on master (#634.8)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc