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/user_spec.rb | |
| parent | 07215f7f2adc3ab3196ee4b353c9da66de1acc0b (diff) | |
| download | gitlab-ce-47251b85e06c84e9303ddbd06098ecc06c05d269.tar.gz | |
ensure_length_of -> validate_length_of
Diffstat (limited to 'spec/models/user_spec.rb')
| -rw-r--r-- | spec/models/user_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index be0b70395d6..f1b8afa5854 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -96,7 +96,7 @@ describe User do it { is_expected.to allow_value(0).for(:projects_limit) } it { is_expected.not_to allow_value(-1).for(:projects_limit) } - it { is_expected.to ensure_length_of(:bio).is_within(0..255) } + it { is_expected.to validate_length_of(:bio).is_within(0..255) } describe 'email' do it 'accepts info@example.com' do |
