|
14 | 14 | it { is_expected.to run.with_params('string').and_raise_error(ArgumentError, %r{parameter 'length' expects an Integer\ value, got String}) }
|
15 | 15 | it { is_expected.to run.with_params([]).and_raise_error(ArgumentError, %r{parameter 'length' expects an Integer value, got Array}) }
|
16 | 16 | it { is_expected.to run.with_params({}).and_raise_error(ArgumentError, %r{parameter 'length' expects an Integer value, got Hash}) }
|
17 |
| - it { is_expected.to run.with_params(1, 1).and_raise_error(ArgumentError, %r{parameter 'charset' expects a String value, got Integer}) } |
18 |
| - it { is_expected.to run.with_params(1, []).and_raise_error(ArgumentError, %r{parameter 'charset' expects a String value, got Array}) } |
19 |
| - it { is_expected.to run.with_params(1, {}).and_raise_error(ArgumentError, %r{parameter 'charset' expects a String value, got Hash}) } |
| 17 | + it { is_expected.to run.with_params(1, 1).and_raise_error(ArgumentError, %r{parameter 'charset' expects a value of type Undef or String, got Integer}) } |
| 18 | + it { is_expected.to run.with_params(1, []).and_raise_error(ArgumentError, %r{parameter 'charset' expects a value of type Undef or String, got Array}) } |
| 19 | + it { is_expected.to run.with_params(1, {}).and_raise_error(ArgumentError, %r{parameter 'charset' expects a value of type Undef or String, got Hash}) } |
20 | 20 | it { is_expected.to run.with_params('100').and_raise_error(ArgumentError, %r{parameter 'length' expects an Integer value, got String}) }
|
21 |
| - it { is_expected.to run.with_params(100, nil).and_raise_error(ArgumentError, %r{parameter 'charset' expects a String value, got Undef}) } |
22 |
| - it { is_expected.to run.with_params(100).and_return(default_charset) } |
| 21 | + it { is_expected.to run.with_params(100, nil).and_return(default_charset) } |
23 | 22 | it { is_expected.to run.with_params(100, '').and_return(default_charset) }
|
| 23 | + it { is_expected.to run.with_params(100, nil, 'MY_CUSTOM_SEED').and_return(default_charset) } |
| 24 | + it { is_expected.to run.with_params(100, '', 'MY_CUSTOM_SEED').and_return(default_charset) } |
| 25 | + it { is_expected.to run.with_params(100).and_return(default_charset) } |
24 | 26 | it { is_expected.to run.with_params(100, 'a').and_return(%r{\Aa{100}\z}) }
|
25 | 27 | it { is_expected.to run.with_params(100, 'ab').and_return(%r{\A[ab]{100}\z}) }
|
26 | 28 | it { is_expected.to run.with_params(100, 'ãβ').and_return(%r{\A[ãβ]{100}\z}) }
|
|
0 commit comments