blob: f305d07cd6ec8fb15f24fd3217361399d2f45fc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'spec_helper'
RSpec.describe Trunk::KDBX do
subject { described_class.new(path, password: password) }
let(:path) { 'spec/fixtures/trunk.kdbx' }
let(:password) { 'password' }
describe "#each" do
specify { expect(subject.count).to eql(1) }
specify { expect(subject.first[:title]).to eql('voltron') }
specify { expect(subject.first[:username]).to eql('hunk') }
specify { expect(subject.first[:password]).to eql('TsuyoshiGarett') }
specify { expect(subject.first[:url]).to eql('http://voltron.wikia.com') }
end
end
|