A better approach would be:

@my_string.should have(@my_string.size).characters