spec/rsync/result_spec.rb in rsync-1.0.8 vs spec/rsync/result_spec.rb in rsync-1.0.9
- old
+ new
@@ -4,21 +4,24 @@
it "should handle basic example" do
result = Rsync::Result.new("", 0)
result.changes.should eql([])
result.error.should eql("Success")
result.success?.should eql(true)
+ result.exitcode.should eql(0)
end
it "should handle basic example with changes" do
result = Rsync::Result.new(">f......... filename\n", 0)
result.changes.length.should eql(1)
result.error.should eql("Success")
result.success?.should eql(true)
+ result.exitcode.should eql(0)
end
it "should handle syntax error" do
result = Rsync::Result.new("", 1)
result.changes.should eql([])
result.error.should eql("Syntax or usage error")
result.success?.should eql(false)
+ result.exitcode.should eql(1)
end
end