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

rspec / rspec-expectations / 634
89%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2013 05:46PM UTC
Jobs 5
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

pending completion
634

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

2 of 2 new or added lines in 1 file covered. (100.0%)

1561 of 1602 relevant lines covered (97.44%)

193.69 hits per line

Jobs
ID Job ID Ran Files Coverage
2 634.2 (1.9.2) 22 Jul 2013 05:46PM UTC 0
96.95
Travis Job 634.2
3 634.3 (1.9.3) 22 Jul 2013 05:46PM UTC 0
96.95
Travis Job 634.3
5 634.5 (jruby-19mode) 22 Jul 2013 05:46PM UTC 0
97.12
Travis Job 634.5
8 634.8 (rbx-19mode) 22 Jul 2013 05:48PM UTC 0
98.87
Travis Job 634.8
9 634.9 (2.0.0) 22 Jul 2013 06:56PM UTC 0
97.28
Travis Job 634.9
Source Files on build 634
  • Tree
  • List 0
  • Changed 58
  • Source Changed 5
  • Coverage Changed 58
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #634
  • Pull Request #295
  • PR Base - master (#631)
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