Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remote Entry#size returns integer

  • Loading branch information...
commit 1c1f7565fc2a893d3a9685b4fa69cf5726a2214f 1 parent 5f1daaa
@adamwiggins adamwiggins authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/rush/remote.rb
  2. +2 −2 spec/remote_spec.rb
View
2  lib/rush/remote.rb
@@ -63,7 +63,7 @@ def set_access(full_path, access)
end
def size(full_path)
- transmit(:action => 'size', :full_path => full_path)
+ transmit(:action => 'size', :full_path => full_path).to_i
end
def processes
View
4 spec/remote_spec.rb
@@ -73,8 +73,8 @@
end
it "transmits size" do
- @con.should_receive(:transmit).with(:action => 'size', :full_path => 'full_path').and_return("")
- @con.size('full_path')
+ @con.should_receive(:transmit).with(:action => 'size', :full_path => 'full_path').and_return("123")
+ @con.size('full_path').should == 123
end
it "transmits processes" do
Please sign in to comment.
Something went wrong with that request. Please try again.