Sha256: e2eb2cd67575e5f1f6c30384e1fa5005f2d1897d533270c98c08422da23df019

Contents?: true

Size: 462 Bytes

Versions: 7

Compression:

Stored size: 462 Bytes

Contents

require 'test_helper'

module Shipit
  class TasksTest < ActiveSupport::TestCase
    test "#title interpolates env" do
      task = shipit_tasks(:shipit_rendered_failover)
      assert_equal({'POD_ID' => '12'}, task.env)
      assert_equal 'Failover pod 12', task.title
    end

    test "#title returns the task action if title is not defined" do
      task = shipit_tasks(:shipit_restart)
      assert_equal 'Restart application', task.title
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shipit-engine-0.27.0 test/models/tasks_test.rb
shipit-engine-0.26.0 test/models/tasks_test.rb
shipit-engine-0.25.1 test/models/tasks_test.rb
shipit-engine-0.25.0 test/models/tasks_test.rb
shipit-engine-0.24.0 test/models/tasks_test.rb
shipit-engine-0.23.1 test/models/tasks_test.rb
shipit-engine-0.23.0 test/models/tasks_test.rb