Sha256: c518fd155ef832365f44be72f91a85a0655b178ece90456a40bebac3074a35be

Contents?: true

Size: 431 Bytes

Versions: 9

Compression:

Stored size: 431 Bytes

Contents

# 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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.38.0 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.37.0 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.36.1 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.36.0 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.35.1 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.35.0 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.34.0 test/lib/shipit/deploy_commands_test.rb
shipit-engine-0.33.0 test/lib/shipit/deploy_commands_test.rb