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

rspec / rspec-expectations / 633
89%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2013 05:20PM 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
633

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.36 hits per line

Jobs
ID Job ID Ran Files Coverage
2 633.2 (1.9.2) 22 Jul 2013 05:20PM UTC 0
96.95
Travis Job 633.2
3 633.3 (1.9.3) 22 Jul 2013 05:25PM UTC 0
96.95
Travis Job 633.3
5 633.5 (jruby-19mode) 22 Jul 2013 05:19PM UTC 0
97.12
Travis Job 633.5
8 633.8 (rbx-19mode) 22 Jul 2013 05:43PM UTC 0
98.87
Travis Job 633.8
9 633.9 (2.0.0) 22 Jul 2013 05:27PM UTC 0
97.28
Travis Job 633.9
Source Files on build 633
  • Tree
  • List 0
  • Changed 52
  • Source Changed 5
  • Coverage Changed 52
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #633
  • 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