spec/vault_spec.rb in lastpass-1.5.0 vs spec/vault_spec.rb in lastpass-1.6.0

- old
+ new

@@ -4,19 +4,19 @@ require "spec_helper" require "test_data" describe LastPass::Vault do let(:vault) { - LastPass::Vault.new LastPass::Blob.new(TEST_BLOB, TEST_KEY_ITERATION_COUNT), + LastPass::Vault.new LastPass::Blob.new(TEST_BLOB, TEST_KEY_ITERATION_COUNT, nil), TEST_ENCRYPTION_KEY } describe ".new" do it "raises an exception on trucated blob" do [1, 2, 3, 4, 5, 10, 100, 1000].each do |i| expect { blob = TEST_BLOB[0..(-1 - i)] - LastPass::Vault.new LastPass::Blob.new(blob, TEST_KEY_ITERATION_COUNT), + LastPass::Vault.new LastPass::Blob.new(blob, TEST_KEY_ITERATION_COUNT, nil), TEST_ENCRYPTION_KEY }.to raise_error LastPass::InvalidResponseError, "Blob is truncated" end end end