Add Remote::FS#remote attribute reader

This commit is contained in:
Thibault Jouan 2014-01-19 23:23:56 +00:00
parent 5662bb723e
commit b1e182cc93
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ module Producer
class FS
require 'net/sftp'
attr_reader :remote
def initialize(remote)
@remote = remote
end

View File

@ -7,7 +7,7 @@ module Producer::Core
describe '#new' do
it 'assigns the remote given as argument' do
expect(fs.instance_eval { @remote }).to be remote
expect(fs.remote).to be remote
end
end