Replace more deprecated shoulda matchers in specs

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2786/head
Alex Coles 10 years ago
parent b8567d13ed
commit 19ed4dc9ab
  1. 4
      spec/models/work_package/work_package_validations_spec.rb

@ -38,8 +38,8 @@ describe WorkPackage, type: :model do
it { is_expected.to validate_presence_of field }
end
it { is_expected.to ensure_length_of(:subject).is_at_most 255 }
it { is_expected.to ensure_inclusion_of(:done_ratio).in_range 0..100 }
it { is_expected.to validate_length_of(:subject).is_at_most 255 }
it { is_expected.to validate_inclusion_of(:done_ratio).in_range 0..100 }
it { is_expected.to validate_numericality_of :estimated_hours }
it 'validates, that start-date is before end-date' do

Loading…
Cancel
Save