spec/lib/danica/number_spec.rb in danica-2.0.3 vs spec/lib/danica/number_spec.rb in danica-2.0.4

- old
+ new

@@ -2,12 +2,14 @@ describe Danica::Number do let(:value) { 10 } subject { described_class.new(value) } - it_behaves_like 'an object with + operation' + it_behaves_like 'an object that respond to basic_methods' + it_behaves_like 'an object with basic operation' + describe '#to_f' do it 'returns the float of value' do expect(subject.to_f).to eq(10) end @@ -21,13 +23,13 @@ it 'returns the value integer string' do expect(subject.to_tex).to eq('10') end end - context 'when value should be integer' do + context 'when value should be a float' do let(:value) { 10.5 } - it 'returns the value integer string' do + it 'returns the value float string' do expect(subject.to_tex).to eq('10.5') end end end