blob: 5aa801c4b9b17ab74900832ae7f2019ff3b9f087 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require 'spec_helper'
describe 'stdlib::round' do
it { is_expected.not_to eq(nil) }
it { is_expected.to run.with_params(34.3).and_return(34) }
it { is_expected.to run.with_params(-34.3).and_return(-34) }
it { is_expected.to run.with_params(34.5).and_return(35) }
it { is_expected.to run.with_params(-34.5).and_return(-35) }
it { is_expected.to run.with_params(34.7).and_return(35) }
it { is_expected.to run.with_params(-34.7).and_return(-35) }
end
|