thor-ssh 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/thor-ssh/version.rb +1 -1
- data/spec/remote_file_spec.rb +3 -1
- metadata +3 -3
data/lib/thor-ssh/version.rb
CHANGED
data/spec/remote_file_spec.rb
CHANGED
@@ -4,7 +4,8 @@ require 'thor-ssh'
|
|
4
4
|
describe ThorSsh do
|
5
5
|
before do
|
6
6
|
@connection = mock(Net::SFTP)
|
7
|
-
@
|
7
|
+
@base = mock('base')
|
8
|
+
@remote_file = ThorSsh::RemoteFile.new(@base, @connection)
|
8
9
|
end
|
9
10
|
|
10
11
|
it "should set the connection" do
|
@@ -14,6 +15,7 @@ describe ThorSsh do
|
|
14
15
|
it "should check if a remote file exists" do
|
15
16
|
sftp_connection = mock("sftp")
|
16
17
|
sftp_connection.should_receive(:stat!).with('/test/path') { true }
|
18
|
+
sftp_connection.should_receive(:close_channel).ordered.any_number_of_times
|
17
19
|
|
18
20
|
@connection.stub(:sftp) { sftp_connection }
|
19
21
|
@remote_file.exists?('/test/path').should == true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -207,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
segments:
|
209
209
|
- 0
|
210
|
-
hash: -
|
210
|
+
hash: -1117505824166211408
|
211
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
212
|
none: false
|
213
213
|
requirements:
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
segments:
|
218
218
|
- 0
|
219
|
-
hash: -
|
219
|
+
hash: -1117505824166211408
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
222
|
rubygems_version: 1.8.22
|