Skip to content
Browse files

Added test for ApplicationHelper#encrypt_email

  • Loading branch information...
1 parent 7ea27ef commit 38d9c4d0f06e953def42a13da795bc8f00a599ad @wadewest wadewest committed Feb 7, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/helpers/application_helper_spec.rb
View
7 spec/helpers/application_helper_spec.rb
@@ -0,0 +1,7 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe ApplicationHelper do
+ it "encrypts an email address" do
+ helper.encrypt_email('foo@bar.com').should eq([102, 111, 111, 64, 98, 97, 114, 46, 99, 111, 109])
+ end
+end

0 comments on commit 38d9c4d

Please sign in to comment.
Something went wrong with that request. Please try again.