Then(/^the password should be (\d+) characters long$/) do |length| expect(all_output.strip.length).to eq(length.to_i) end