change month and day order as in jekyl

This commit is contained in:
Torsten Ruger
2018-04-10 20:00:56 +03:00
parent b61bc7c7ad
commit f6be73bec0
3 changed files with 77 additions and 6 deletions

View File

@ -27,8 +27,8 @@ RSpec.describe Post, type: :model do
end
it "returns dates" do
expect(@post.year).to eq 1993
expect(@post.month).to eq 4
expect(@post.day).to eq 2
expect(@post.day).to eq 4
expect(@post.month).to eq 2
end
it "returns date" do
expect(@post.date).to eq "1993-2-4"