X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/19d62168607b8a355156b2c2e089b615ab4c9381..0f7e775800a9d0082772d3f83db796b3f4e71180:/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