Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dasch committed Aug 27, 2018
1 parent 4e652bd commit 443898b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/helpers/application_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -711,15 +711,15 @@ def create_deploy(reference)

it "renders current, succeeded deploys" do
html = deployed_or_running_list(stage_list, "v1")
html.must_equal "<span class=\"label label-success release-stage\">Staging</span> "
html.must_equal "<span class=\"label label-success release-stage\">Staging</span>"
end

it "renders past, succeeded deploys" do
# This deploy will be newer.
create_deploy "v2"

html = deployed_or_running_list(stage_list, "v1")
html.must_equal "<span class=\"label label-default release-stage\">Staging</span> "
html.must_equal "<span class=\"label label-default release-stage\">Staging</span>"
end

it "ignores failed deploys" do
Expand All @@ -736,7 +736,7 @@ def create_deploy(reference)
it "shows active deploys" do
deploy.job.update_column(:status, 'running')
html = deployed_or_running_list(stage_list, "v1")
html.must_equal "<span class=\"label label-warning release-stage\">Staging</span> "
html.must_equal "<span class=\"label label-warning release-stage\">Staging</span>"
end

it "uses 3 queries when the deploy is the most recent one on the stage" do
Expand Down

0 comments on commit 443898b

Please sign in to comment.