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

rspec / rspec-mocks / 3068
63%

Build:
DEFAULT BRANCH: master
Ran 15 Dec 2017 03:55PM UTC
Jobs 1
Files 26
Run time 3s
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
3068

Pull #1056

travis-ci

nepalez
Allow inheriting mocks matchers

With reference to #1055

Allows rspec matchers inherited from `RSpec::Mocks::Matchers::*` to be used
both in mocks and expectations:

  class ReceiveFoo < RSpec::Mocks::Matchers::Receive
    def initialize
      super :foo, nil
    end
  end

  describe "receiving foo" do
    it "works" do
      object = double

      allow(object).to receive_foo
      expect(object).to receive_foo

      object.foo
    end
  end
Pull Request #1056: Allow inheriting mocks matchers

1252 of 1474 relevant lines covered (84.94%)

7.09 hits per line

Jobs
ID Job ID Ran Files Coverage
13 3068.13 (jruby-18mode, JRUBY_OPTS='--server -Xcompile.invokedynamic=false') 15 Dec 2017 03:55PM UTC 0
84.94
Travis Job 3068.13
Source Files on build 3068
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3068
  • Pull Request #1056
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

© 2026 Coveralls, Inc