assert_not_equal newUP.v, up.v
assert_raise (ActiveRecord::RecordNotUnique) {newUP.save}
end
-
+
def test_check_valid_length
key = "k"
val = "v"
assert_equal val*i, resp.v, "User preference with #{i} #{val} chars (i.e. #{val.length*i} bytes) fails"
end
end
-
+
def test_check_invalid_length
key = "k"
val = "v"