spec/reckon/date_column_spec.rb in reckon-0.9.0 vs spec/reckon/date_column_spec.rb in reckon-0.9.1
- old
+ new
@@ -48,6 +48,12 @@
it 'should default to is' do
expect(Reckon::DateColumn.new(%w[13/12/2013]).pretty_for(0))
.to eq('2013-12-13')
end
end
+
+ describe "#likelihood" do
+ it "should prefer numbers that looks like dates" do
+ expect(Reckon::DateColumn.likelihood("123456789")).to be < Reckon::DateColumn.likelihood("20160102")
+ end
+ end
end