Use a verifying double for remote FS in specs

This commit is contained in:
Thibault Jouan 2014-09-25 20:55:13 +00:00
parent 429b9f9ad2
commit 1e3cd696c8

View File

@ -36,7 +36,7 @@ module TestEnvHelpers
end end
def build_remote def build_remote
fs = RSpec::Mocks::Double.new('remote fs') fs = instance_spy Producer::Core::Remote::FS
remote = Producer::Core::Testing::MockRemote.new('some_host.test') remote = Producer::Core::Testing::MockRemote.new('some_host.test')
remote.define_singleton_method(:fs) { fs } remote.define_singleton_method(:fs) { fs }
remote remote