spec/shelly/backup_spec.rb in shelly-0.1.18 vs spec/shelly/backup_spec.rb in shelly-0.1.19
- old
+ new
@@ -12,10 +12,11 @@
backup.code_name.should == "foo"
backup.filename.should == "backup.tar.gz"
backup.human_size.should == "2KB"
backup.size.should == 2048
+ backup.state.should == "completed"
end
describe "#download" do
it "should download given backup via API file with filename to which backup will be downloaded" do
callback = lambda {}
@@ -27,8 +28,9 @@
def attributes
{"code_name" => "foo",
"filename" => "backup.tar.gz",
"human_size" => "2KB",
- "size" => 2048}
+ "size" => 2048,
+ "state" => "completed"}
end
end