X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/19d62168607b8a355156b2c2e089b615ab4c9381..3360f91733a3aaba670c55427f9195da9c02d981:/test/models/relation_member_test.rb diff --git a/test/models/relation_member_test.rb b/test/models/relation_member_test.rb index a82cea457..7535c342d 100644 --- a/test/models/relation_member_test.rb +++ b/test/models/relation_member_test.rb @@ -9,7 +9,7 @@ class RelationMemberTest < ActiveSupport::TestCase node = create(:node) invalid.each do |r| member = build(:relation_member, :relation => relation, :member => node, :member_role => r) - assert_not member.valid?, "'#{r}' should not be valid" + assert_not_predicate member, :valid?, "'#{r}' should not be valid" assert_predicate member.errors[:member_role], :any? end end @@ -18,7 +18,7 @@ class RelationMemberTest < ActiveSupport::TestCase relation = create(:relation) node = create(:node) member = build(:relation_member, :relation => relation, :member => node, :member_role => "r" * 256) - assert_not member.valid?, "Role should be too long" + assert_not_predicate member, :valid?, "Role should be too long" assert_predicate member.errors[:member_role], :any? end end