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

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

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2013 05:20PM 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:20PM UTC coverage: 96.952% (+0.002%) from 96.95%
1.9.2

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

1463 of 1509 relevant lines covered (96.95%)

39.99 hits per line

Source Files on job 633.2 (1.9.2)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 633
  • Travis Job 633.2
  • 398f8f56 on github
  • Prev Job for 1.9.2 on master (#631.2)
  • Next Job for 1.9.2 on master (#634.2)
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