Sha256: d5694f1acf3ef45b737bde1563cf17a1c594f90f0294046751d95f6b3c5fb3e4

Contents?: true

Size: 545 Bytes

Versions: 14

Compression:

Stored size: 545 Bytes

Contents

require 'test_helper'

module Shipit
  class ShipitTest < ActiveSupport::TestCase
    setup do
      Shipit.instance_variables.each(&Shipit.method(:remove_instance_variable))
    end

    test ".github_teams returns an empty array if there's no team" do
      assert_equal([], Shipit.github_teams)
    end

    test ".github_teams returns the teams key as an array of Team" do
      Shipit.github.stubs(:oauth_teams).returns(['shopify/developers'])
      assert_equal(['shopify/developers'], Shipit.github_teams.map(&:handle))
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 test/unit/shipit_test.rb
shipit-engine-0.30.0 test/unit/shipit_test.rb
shipit-engine-0.29.0 test/unit/shipit_test.rb
shipit-engine-0.28.1 test/unit/shipit_test.rb
shipit-engine-0.28.0 test/unit/shipit_test.rb
shipit-engine-0.27.1 test/unit/shipit_test.rb
shipit-engine-0.27.0 test/unit/shipit_test.rb
shipit-engine-0.26.0 test/unit/shipit_test.rb
shipit-engine-0.25.1 test/unit/shipit_test.rb
shipit-engine-0.25.0 test/unit/shipit_test.rb
shipit-engine-0.24.0 test/unit/shipit_test.rb
shipit-engine-0.23.1 test/unit/shipit_test.rb
shipit-engine-0.23.0 test/unit/shipit_test.rb
shipit-engine-0.22.0 test/unit/shipit_test.rb