If a current is passed through a spring, then the spring will
Due to current in same direction in two adjacent sides, the magnetic force will be attractive in nature, hence the spring will tend to compress.