Commit dc19c25f authored by Corinna Wiesner's avatar Corinna Wiesner

Add spec for normalized data

parent c7774666
......@@ -32,7 +32,12 @@ RSpec.describe HistoricalUserData::CsvService do
end
it 'shows the license key' do
expect(csv[0][1]).to eq(current_license.normalized_data)
license = create(:license, data: current_license.data.gsub("\n", "\r\n"))
allow(License).to receive(:current).and_return(license)
expect(license.data).not_to eq(license.normalized_data)
expect(csv[0][1]).to eq(license.normalized_data)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment