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/key_spec.rb | |
parent | 07215f7f2adc3ab3196ee4b353c9da66de1acc0b (diff) | |
download | gitlab-ce-47251b85e06c84e9303ddbd06098ecc06c05d269.tar.gz |
ensure_length_of -> validate_length_of
Diffstat (limited to 'spec/models/key_spec.rb')
-rw-r--r-- | spec/models/key_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb index 6eb1208a7f2..fbb9e162952 100644 --- a/spec/models/key_spec.rb +++ b/spec/models/key_spec.rb @@ -26,8 +26,8 @@ describe Key do describe "Validation" do it { is_expected.to validate_presence_of(:title) } it { is_expected.to validate_presence_of(:key) } - it { is_expected.to ensure_length_of(:title).is_within(0..255) } - it { is_expected.to ensure_length_of(:key).is_within(0..5000) } + it { is_expected.to validate_length_of(:title).is_within(0..255) } + it { is_expected.to validate_length_of(:key).is_within(0..5000) } end describe "Methods" do |