Sha256: 72e32fad39b49e176713fb6049216b566552aac656488c305ffae17b0acf520c

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

require 'spec_helper'

describe ENV do
  context "#encypt" do
    it 'should be a pass through to EncryptedEnv.encrypt method' do
      EncryptedEnv.should_receive(:encrypt).with(:foo, :bar, :key => :baz)

      ENV.encrypt(:foo, :bar, :key => :baz)
    end
  end

  context "#decrypt" do
    it 'should be a pass through to EncryptedEnv.decrypt method' do
      EncryptedEnv.should_receive(:decrypt).with(:foo, :key => :baz)

      ENV.decrypt(:foo, :key => :baz)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
encrypted_env-0.0.1 spec/env_spec.rb