pluginaweek / encrypted_attributes

Adds support for automatically encrypting ActiveRecord attributes

This URL has Read+Write access

encrypted_attributes / test / test_helper.rb
100644 14 lines (11 sloc) 0.381 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Load the plugin testing framework
$:.unshift("#{File.dirname(__FILE__)}/../../plugin_test_helper/lib")
require 'rubygems'
require 'plugin_test_helper'
 
# Run the migrations
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
 
# Mixin the factory helper
require File.expand_path("#{File.dirname(__FILE__)}/factory")
Test::Unit::TestCase.class_eval do
  include Factory
end