Remove redundant publication date attribute

The attribute made sense before we changed it in commit ba1a6b4c. Since
then, all milestones have the same date, so the attribute doesn't affect
the test at all.
This commit is contained in:
Javi Martín
2019-09-28 03:57:50 +02:00
parent 49b47dd5f4
commit 92acd0f2b1

View File

@@ -116,17 +116,10 @@ describe "Executions" do
end
scenario "renders last milestone's image if investment has multiple milestones with images associated" do
milestone1 = create(:milestone, milestoneable: investment1,
publication_date: Date.yesterday)
milestone2 = create(:milestone, milestoneable: investment1,
publication_date: Date.yesterday)
milestone3 = create(:milestone, milestoneable: investment1,
publication_date: Date.yesterday)
milestone4 = create(:milestone, milestoneable: investment1,
publication_date: Date.yesterday)
milestone1 = create(:milestone, milestoneable: investment1)
milestone2 = create(:milestone, milestoneable: investment1)
milestone3 = create(:milestone, milestoneable: investment1)
milestone4 = create(:milestone, milestoneable: investment1)
create(:image, imageable: milestone2, title: "Image for first milestone with image")
create(:image, imageable: milestone3, title: "Image for second milestone with image")