replaces deprecated method

pull/2167/head
Jens Ulferts 10 years ago
parent 17ea449df1
commit c4f2463629
  1. 4
      spec/models/work_package/work_package_validations_spec.rb

@ -41,7 +41,7 @@ describe WorkPackage, type: :model do
end end
it { is_expected.to ensure_length_of(:subject).is_at_most 255 } 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_inclusion_of(:done_ratio).in_range 0..100 }
it { is_expected.to validate_numericality_of :estimated_hours } it { is_expected.to validate_numericality_of :estimated_hours }
it 'validates, that start-date is before end-date' do it 'validates, that start-date is before end-date' do
@ -107,7 +107,7 @@ describe WorkPackage, type: :model do
expect(wp).to be_valid expect(wp).to be_valid
end end
it 'validate, that the fixed_version belongs to the project ticket lives in' do it 'validate, that the fixed_version belongs to the project the ticket lives in' do
other_project = FactoryGirl.create(:project) other_project = FactoryGirl.create(:project)
non_assignable_version = FactoryGirl.create(:version, project: other_project) non_assignable_version = FactoryGirl.create(:version, project: other_project)

Loading…
Cancel
Save