Sha256: 5f80fd0c3305e5616578cafafbabf0981411cee8816fce30eaca1206ac7f0b6f

Contents?: true

Size: 550 Bytes

Versions: 17

Compression:

Stored size: 550 Bytes

Contents

require 'test_helper'

class StatusGroupTest < ActiveSupport::TestCase
  setup do
    @commit = commits(:second)
    @group = StatusGroup.new(@commit)
  end

  test "#description is a summary of the statuses" do
    assert_equal '1 / 2 checks OK', @group.description
  end

  test "#group? returns true" do
    assert_equal true, @group.group?
  end

  test "#target_url returns nil" do
    assert_nil @group.target_url
  end

  test "#state is significant's status state" do
    assert_equal @commit.significant_status.state, @group.state
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shipit-engine-0.4.10 test/models/status_group_test.rb
shipit-engine-0.4.9 test/models/status_group_test.rb
shipit-engine-0.4.8 test/models/status_group_test.rb
shipit-engine-0.4.7 test/models/status_group_test.rb
shipit-engine-0.4.6 test/models/status_group_test.rb
shipit-engine-0.4.5 test/models/status_group_test.rb
shipit-engine-0.4.4 test/models/status_group_test.rb
shipit-engine-0.4.3 test/models/status_group_test.rb
shipit-engine-0.4.2 test/models/status_group_test.rb
shipit-engine-0.4.1 test/models/status_group_test.rb
shipit-engine-0.4.0 test/models/status_group_test.rb
shipit-engine-0.3.1 test/models/status_group_test.rb
shipit-engine-0.3.0 test/models/status_group_test.rb
shipit-engine-0.2.3 test/models/status_group_test.rb
shipit-engine-0.2.2 test/models/status_group_test.rb
shipit-engine-0.2.1 test/models/status_group_test.rb
shipit-engine-0.2.0 test/models/status_group_test.rb