summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-09-10 18:09:49 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:46 +0200
commitc1cd099089c09b79cb7945be4c3283afed9ab3b3 (patch)
tree5e7c73b13cab7692442e22c2560e6f4696894a1e
parent2ce3d14cfa77f985b6849dd4431db65e9abd0226 (diff)
Removed the view_by__id from invite code test
-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