summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-14 17:59:09 +0200
committerAzul <azul@leap.se>2014-07-14 17:59:09 +0200
commit2f1ceb63bfef2fa7d92fcbad73a5ead5bd17b23e (patch)
tree7df62e5d645189ad9a1fd3b58a932d3574b0a982 /test
parent67f70b31bd16b05759e1f8393f077ee17f2c34be (diff)
minor: remove @s added by search and replace
meant to move id -> @id, also turned identity in the test titles into @identity.
Diffstat (limited to 'test')
-rw-r--r--test/unit/identity_test.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/identity_test.rb b/test/unit/identity_test.rb
index 77104b6..f5c95f8 100644
--- a/test/unit/identity_test.rb
+++ b/test/unit/identity_test.rb
@@ -14,23 +14,23 @@ class IdentityTest < ActiveSupport::TestCase
end
end
- test "blank @identity does not crash on valid?" do
+ test "blank identity does not crash on valid?" do
@id = Identity.new
assert !@id.valid?
end
- test "enabled @identity requires destination" do
+ test "enabled identity requires destination" do
@id = Identity.new user: @user, address: @user.email_address
assert !@id.valid?
assert_equal ["can't be blank"], @id.errors[:destination]
end
- test "disabled @identity requires no destination" do
+ test "disabled identity requires no destination" do
@id = Identity.new address: @user.email_address
assert @id.valid?
end
- test "initial @identity for a user" do
+ test "initial identity for a user" do
@id = Identity.for(@user)
assert_equal @user.email_address, @id.address
assert_equal @user.email_address, @id.destination
@@ -90,7 +90,7 @@ class IdentityTest < ActiveSupport::TestCase
assert_equal @id.keys[:pgp], result["value"]
end
- test "fail to add non-local email address as @identity address" do
+ test "fail to add non-local email address as identity address" do
@id = Identity.for @user, address: forward_address
assert !@id.valid?
assert_match /needs to end in/, @id.errors[:address].first
@@ -110,7 +110,7 @@ class IdentityTest < ActiveSupport::TestCase
assert @id.errors.messages[:destination].include? "needs to be a valid email address"
end
- test "disabled @identity" do
+ test "disabled identity" do
@id = Identity.for(@user)
@id.disable
assert_equal @user.email_address, @id.address
@@ -120,7 +120,7 @@ class IdentityTest < ActiveSupport::TestCase
assert @id.valid?
end
- test "disabled @identity blocks handle" do
+ test "disabled identity blocks handle" do
@id = Identity.for(@user)
@id.disable
@id.save