Add Remote::FS#remote attribute reader
This commit is contained in:
parent
5662bb723e
commit
b1e182cc93
@ -4,6 +4,8 @@ module Producer
|
||||
class FS
|
||||
require 'net/sftp'
|
||||
|
||||
attr_reader :remote
|
||||
|
||||
def initialize(remote)
|
||||
@remote = remote
|
||||
end
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user