diff options
author | TP Honey <tphoney@users.noreply.github.com> | 2017-08-11 09:56:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-11 09:56:53 +0100 |
commit | c7ac34da3a8b70500143e326f8c4fa27ae7da311 (patch) | |
tree | 26721306dc6501ada77e48111b8e94f9856cf0b8 /spec/functions/is_integer_spec.rb | |
parent | b89d5f388ca701e38a0e0337408f5ccb7e68565f (diff) | |
parent | 016f4dfd7f0c8a6b5b98fa38cf70434603c75883 (diff) |
Merge branch 'master' into release
Diffstat (limited to 'spec/functions/is_integer_spec.rb')
-rwxr-xr-x | spec/functions/is_integer_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/functions/is_integer_spec.rb b/spec/functions/is_integer_spec.rb index b296830..8118ef4 100755 --- a/spec/functions/is_integer_spec.rb +++ b/spec/functions/is_integer_spec.rb @@ -11,6 +11,8 @@ describe 'is_integer' do it { is_expected.to run.with_params('3').and_return(true) } it { is_expected.to run.with_params(-3).and_return(true) } it { is_expected.to run.with_params('-3').and_return(true) } + it { is_expected.to run.with_params("123\nfoo").and_return(true) } + it { is_expected.to run.with_params("foo\n123").and_return(true) } it { is_expected.to run.with_params(3.7).and_return(false) } it { is_expected.to run.with_params('3.7').and_return(false) } @@ -24,6 +26,7 @@ describe 'is_integer' do it { is_expected.to run.with_params(true).and_return(false) } it { is_expected.to run.with_params(false).and_return(false) } it { is_expected.to run.with_params('0001234').and_return(false) } + it { is_expected.to run.with_params("foo\nbar").and_return(false) } context 'Checking for deprecation warning' do after(:all) do |