Bundler always resolves the dependencies for all your gems, even if you're excluding a group. Otherwise, it might overlook a conflict that will arise later when you don't exclude that group.
If all the gems and versions are valid and the dependencies are resolved properly, then Bundler will respect your wishes and not install gems in the group.