fix post sorting issue

This commit is contained in:
Torsten Ruger
2018-04-22 13:35:13 +03:00
parent 4f3d33c322
commit 33953445b7
35 changed files with 5 additions and 10 deletions

View File

@ -31,10 +31,10 @@ RSpec.describe Post, type: :model do
expect(@post.month).to eq 2
end
it "returns date" do
expect(@post.date).to eq "1993-2-4"
expect(@post.date).to eq Date.new(1993,2,4)
end
it "returns file_name" do
expect(@post.template_name).to eq "1993-2-4-title"
expect(@post.template_name).to eq "1993-02-04-title"
end
end