Remove unused instance variables
These variables were declared but never used.
This commit is contained in:
@@ -8,45 +8,45 @@ describe "Admin banners magement" do
|
|||||||
|
|
||||||
context "Index" do
|
context "Index" do
|
||||||
before do
|
before do
|
||||||
@banner1 = create(:banner, title: "Banner number one",
|
create(:banner, title: "Banner number one",
|
||||||
description: "This is the text of banner number one and is not active yet",
|
description: "This is the text of banner number one and is not active yet",
|
||||||
target_url: "http://www.url.com",
|
target_url: "http://www.url.com",
|
||||||
post_started_at: (Time.current + 4.days),
|
post_started_at: (Time.current + 4.days),
|
||||||
post_ended_at: (Time.current + 10.days),
|
post_ended_at: (Time.current + 10.days),
|
||||||
background_color: "#FF0000",
|
background_color: "#FF0000",
|
||||||
font_color: "#FFFFFF")
|
font_color: "#FFFFFF")
|
||||||
|
|
||||||
@banner2 = create(:banner, title: "Banner number two",
|
create(:banner, title: "Banner number two",
|
||||||
description: "This is the text of banner number two and is not longer active",
|
description: "This is the text of banner number two and is not longer active",
|
||||||
target_url: "http://www.url.com",
|
target_url: "http://www.url.com",
|
||||||
post_started_at: (Time.current - 10.days),
|
post_started_at: (Time.current - 10.days),
|
||||||
post_ended_at: (Time.current - 3.days),
|
post_ended_at: (Time.current - 3.days),
|
||||||
background_color: "#00FF00",
|
background_color: "#00FF00",
|
||||||
font_color: "#FFFFFF")
|
font_color: "#FFFFFF")
|
||||||
|
|
||||||
@banner3 = create(:banner, title: "Banner number three",
|
create(:banner, title: "Banner number three",
|
||||||
description: "This is the text of banner number three",
|
description: "This is the text of banner number three",
|
||||||
target_url: "http://www.url.com",
|
target_url: "http://www.url.com",
|
||||||
post_started_at: (Time.current - 1.day),
|
post_started_at: (Time.current - 1.day),
|
||||||
post_ended_at: (Time.current + 10.days),
|
post_ended_at: (Time.current + 10.days),
|
||||||
background_color: "#0000FF",
|
background_color: "#0000FF",
|
||||||
font_color: "#FFFFFF")
|
font_color: "#FFFFFF")
|
||||||
|
|
||||||
@banner4 = create(:banner, title: "Banner number four",
|
create(:banner, title: "Banner number four",
|
||||||
description: "This is the text of banner number four",
|
description: "This is the text of banner number four",
|
||||||
target_url: "http://www.url.com",
|
target_url: "http://www.url.com",
|
||||||
post_started_at: (DateTime.current - 10.days),
|
post_started_at: (DateTime.current - 10.days),
|
||||||
post_ended_at: (DateTime.current + 10.days),
|
post_ended_at: (DateTime.current + 10.days),
|
||||||
background_color: "#FFF000",
|
background_color: "#FFF000",
|
||||||
font_color: "#FFFFFF")
|
font_color: "#FFFFFF")
|
||||||
|
|
||||||
@banner5 = create(:banner, title: "Banner number five",
|
create(:banner, title: "Banner number five",
|
||||||
description: "This is the text of banner number five",
|
description: "This is the text of banner number five",
|
||||||
target_url: "http://www.url.com",
|
target_url: "http://www.url.com",
|
||||||
post_started_at: (DateTime.current - 10.days),
|
post_started_at: (DateTime.current - 10.days),
|
||||||
post_ended_at: (DateTime.current + 10.days),
|
post_ended_at: (DateTime.current + 10.days),
|
||||||
background_color: "#FFFF00",
|
background_color: "#FFFF00",
|
||||||
font_color: "#FFFFFF")
|
font_color: "#FFFFFF")
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario "Index show active banners" do
|
scenario "Index show active banners" do
|
||||||
|
|||||||
Reference in New Issue
Block a user