diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-18 16:40:10 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-10 01:31:26 -0400 |
commit | 47251b85e06c84e9303ddbd06098ecc06c05d269 (patch) | |
tree | 73e49c5940c656134183600145aaa08a3991cfc3 /spec/models/concerns | |
parent | 07215f7f2adc3ab3196ee4b353c9da66de1acc0b (diff) | |
download | gitlab-ce-47251b85e06c84e9303ddbd06098ecc06c05d269.tar.gz |
ensure_length_of -> validate_length_of
Diffstat (limited to 'spec/models/concerns')
-rw-r--r-- | spec/models/concerns/issuable_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/concerns/issuable_spec.rb b/spec/models/concerns/issuable_spec.rb index 557c71b4d2c..86c395a8e8e 100644 --- a/spec/models/concerns/issuable_spec.rb +++ b/spec/models/concerns/issuable_spec.rb @@ -16,7 +16,7 @@ describe Issue, "Issuable" do it { is_expected.to validate_presence_of(:iid) } it { is_expected.to validate_presence_of(:author) } it { is_expected.to validate_presence_of(:title) } - it { is_expected.to ensure_length_of(:title).is_at_least(0).is_at_most(255) } + it { is_expected.to validate_length_of(:title).is_at_least(0).is_at_most(255) } end describe "Scope" do |