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

yarmiganosca / dependency_bundle / 7
100%

Build:
DEFAULT BRANCH: master
Ran 02 May 2019 09:21PM UTC
Jobs 1
Files 2
Run time 1s
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
7

push

travis-ci

yarmiganosca
Rewrote the main interface to actually allow instance doubles in tests

It turns out that calling `set :name, instance_double("Name")` in a
`DependencyBundle#initialize` call doesn't actually work, because
`instance_double` isn't a method on `DependencyBundle`. There's no way to have
`#initialize` take a block in which `#set` can be called implicitly and in which
`instance_double` (or `let` collaborators) can be used. So, I changed the
`#initialize` and `#set` methods to take keyword arguments. Multiple `#set`
statements will be required in a situation like this:

```
deps = DependencyBundle.new do
  set :logger, Logger.new(self.stdout)
end
```

That will now look like this:

```
deps = DependencyBundle.new
deps.set(logger: Logger.new(deps.stdout))
```

* BREAKING: Changed the `#initialize` and `#set` method signatures.

74 of 74 relevant lines covered (100.0%)

3.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7.1 (2.5.1) 02 May 2019 09:21PM UTC 0
100.0
Travis Job 7.1
Source Files on build 7
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7
  • 778899fd on github
  • Prev Build on master (#6)
  • Next Build on master (#8)
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