Implement basic Testing::MockRemote object

This commit is contained in:
Thibault Jouan committed 2014-03-04 05:54:19 +00:00
1 parent 88036f0389
commit b576604498
3 files changed
+31

No files matched your search

@@ -0,0 +1,19 @@
require 'producer/core/testing'
module Producer::Core
module Testing
describe MockRemote do
subject(:remote) { MockRemote.new('some_host.example') }
it 'is a remote' do
expect(remote).to be_a Remote
end
describe '#session' do
it 'raises an error to prevent real session usage' do
expect { remote.session }.to raise_error
end
end
end
end
end