rspec for permute()