Sha256: 88331d76736e34c1ade5613bc6fa7344e467cb7404000d26cccf70e3b7eb1337

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

require 'spec_helper'

describe Slosilo::Keystore do
  include_context "with example key"
  include_context "with mock adapter"
  
  describe '#put' do
    it "handles Slosilo::Keys" do
      subject.put(:test, key)
      adapter['test'].to_der.should == rsa.to_der
    end

    it "passes the Slosilo key to the adapter" do
      adapter.should_receive(:put_key).with "test", key
      subject.put :test, key
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slosilo-0.4.1 spec/keystore_spec.rb
slosilo-0.4.0 spec/keystore_spec.rb