# frozen_string_literal: true require "test_helper" class DeployCommandsTest < ActiveSupport::TestCase test "#env includes the stack's pull request labels" do stack = shipit_stacks(:review_stack) deploy = stack.trigger_continuous_delivery stack.pull_request.labels = ["wip", "bug"] env = Shipit::DeployCommands.new(deploy).env assert_equal env["WIP"], "true" assert_equal env["BUG"], "true" end end