spec/lib/danica/number_spec.rb in danica-2.0.1 vs spec/lib/danica/number_spec.rb in danica-2.0.2

- old
+ new

@@ -1,9 +1,11 @@ require 'spec_helper' describe Danica::Number do let(:value) { 10 } - let(:subject) { described_class.new(value) } + subject { described_class.new(value) } + + it_behaves_like 'an object with + operation' describe '#to_f' do it 'returns the float of value' do expect(subject.to_f).to eq(10) end