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

rspec / rspec-expectations / 634 / 5
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2013 05:46PM UTC
Files 44
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:46PM UTC coverage: 97.124% (+0.002%) from 97.122%
jruby-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

1486 of 1530 relevant lines covered (97.12%)

44.06 hits per line

Source Files on job 634.5 (jruby-19mode)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 634
  • Travis Job 634.5
  • 1744811a on github
  • Prev Job for jruby-19mode on master (#631.5)
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