spec/blob_spec.rb in lastpass-1.5.0 vs spec/blob_spec.rb in lastpass-1.6.0
- old
+ new
@@ -4,17 +4,19 @@
require "spec_helper"
describe LastPass::Blob do
let(:bytes) { "TFBBVgAAAAMxMjJQUkVNAAAACjE0MTQ5".decode64 }
let(:key_iteration_count) { 500 }
+ let(:encrypted_private_key) { "DEADBEEF" }
let(:username) { "postlass@gmail.com" }
let(:password) { "pl1234567890" }
let(:encryption_key) { "OfOUvVnQzB4v49sNh4+PdwIFb9Fr5+jVfWRTf+E2Ghg=".decode64 }
- subject { LastPass::Blob.new bytes, key_iteration_count }
+ subject { LastPass::Blob.new bytes, key_iteration_count, encrypted_private_key }
its(:bytes) { should eq bytes }
its(:key_iteration_count) { should eq key_iteration_count }
+ its(:encrypted_private_key) { should eq encrypted_private_key }
describe "#encryption_key" do
it "returns encryption key" do
expect(subject.encryption_key username, password).to eq encryption_key
end