Skip to content
Snippets Groups Projects
Commit 78d4db27 authored by Markus Reiter's avatar Markus Reiter
Browse files

Use classes for instance doubles.

parent e1b0b0f3
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ describe CacheStoreDatabase do
describe "#close_if_open!" do
context "database open" do
before(:each) do
subject.instance_variable_set(:@db, instance_double("db", close: nil))
subject.instance_variable_set(:@db, instance_double(DBM, close: nil))
end
it "does not raise an error when `close` is called on the database" do
......
describe Hbc::Artifact::Installer, :cask do
let(:staged_path) { mktmpdir }
let(:cask) { instance_double("Cask", staged_path: staged_path, config: nil) }
let(:cask) { instance_double(Hbc::Cask, staged_path: staged_path, config: nil) }
subject(:installer) { described_class.new(cask, **args) }
let(:command) { SystemCommand }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment