spec/integration/rmega-up_spec.rb in rmega-0.2.7 vs spec/integration/rmega-up_spec.rb in rmega-0.3.1
- old
+ new
@@ -36,27 +36,27 @@
end
if account?
context "when the remote path is missing" do
it "fails" do
- resp = call("#{filepath} -u #{account['email']} --pass #{account['password']} -r /foobar")
+ resp = call("#{filepath} -u #{account['email']} --pass '#{account['password']}' -r /foobar")
expect(resp).to match(/error/i)
end
end
context "without specifying a remote folder" do
it "uploads a file to the root node" do
- call("#{filepath} -u #{account['email']} --pass #{account['password']}")
+ call("#{filepath} -u #{account['email']} --pass '#{account['password']}'")
storage = login
node = storage.root.files.find { |f| f.name == filename }
node.delete if node
expect(node).not_to be_nil
end
end
context "when specifying a remote folder" do
it "uploads a file into that folder" do
- call("#{filepath} -u #{account['email']} --pass #{account['password']} -r test_folder2")
+ call("#{filepath} -u #{account['email']} --pass '#{account['password']}' -r test_folder2")
storage = login
node = storage.root.folders.find { |f| f.name == "test_folder2" }
node = node.files.find { |f| f.name == filename }
node.delete if node
expect(node).not_to be_nil