Sha256: 611948e1dfb01ed105f02675a44c585eeb92a2f357e5504b7fea2aa465523acd
Contents?: true
Size: 656 Bytes
Versions: 24
Compression:
Stored size: 656 Bytes
Contents
require 'test_helper' module Shipit class StatusGroupTest < ActiveSupport::TestCase setup do @commit = shipit_commits(:second) @group = StatusGroup.new(@commit.significant_status, @commit.visible_statuses) 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 end
Version data entries
24 entries across 24 versions & 1 rubygems