Sha256: d6fc5abd19c6ccb802846559aba95712447772d0ba0f1860bd3dcad415746560

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe 'Encrypted attributes' do
  context "Not encryption" do
    let(:credential) { Credential.create(:email => 'john.smith@example.com') }
    before { credential.password = 'this is not a secret' }
    subject { credential.password }
    it { should eq('this is not a secret') }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-encryptor-0.0.1 spec/encrypted_attributes_spec.rb