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