Sha256: f849c611beec6ba569fa0ed8570ccab1742d77db6aa01c3a53cd2ec89ca4f701

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'
require 'base64'

describe InlineEncryption::CLI do

  let(:subject){ InlineEncryption::CLI.new }

  before :all do
    @default_key = OpenSSL::PKey::RSA.generate(2048)
    InlineEncryption.config[:key] = @default_key
  end

  it 'should encrypt' do
    InlineEncryption.should_receive(:encrypt).with('hello')

    subject.encrypt('hello')
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inline_encryption-0.0.6 spec/inline_encryption/cli_spec.rb