spec/date_spec.rb in nydp-0.0.9 vs spec/date_spec.rb in nydp-0.0.10
- old
+ new
@@ -9,9 +9,10 @@
nd = Nydp.r2n rd, ns
expect(nd). to be_a Nydp::Date
expect(nd.to_s). to eq "2015-06-08"
expect(nd.inspect).to eq "#<Date: 2015-06-08 ((2457182j,0s,0n),+0s,2299161j)>"
+ expect(nd.to_ruby).to eq Date.parse("2015-06-08")
end
it "returns date components" do
rd = Date.parse "2015-06-08"
nd = Nydp.r2n rd, ns