summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/invite_code_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/invite_code_test.rb b/test/unit/invite_code_test.rb
index 1b6a002..b17d1bc 100644
--- a/test/unit/invite_code_test.rb
+++ b/test/unit/invite_code_test.rb
@@ -10,7 +10,7 @@ class InviteCodeTest < ActiveSupport::TestCase
test "the invite code can be read from couch db correctly" do
code1 = InviteCode.new
code1.save
- code2 = InviteCode.find_by__id code1.id
+ code2 = InviteCode.find_by_invite_code code1.invite_code
assert_equal code1.invite_code, code2.invite_code
end