i18n agnostic spec

pull/6827/head
Jens Ulferts 9 years ago
parent 34406f9971
commit 8133b1a488
  1. 3
      spec/controllers/hourly_rates_controller_spec.rb

@ -43,7 +43,8 @@ describe HourlyRatesController do
end
it "should display an error message" do
expect(assigns(:user).default_rates.first.errors.messages[:rate].first).to eq("is not a number")
actual_message = assigns(:user).default_rates.first.errors.messages[:rate].first
expect(actual_message).to eq(I18n.t('activerecord.errors.messages.not_a_number'))
end
end
end

Loading…
Cancel
Save