Sha256: 70be838680380e499f1aa9dd9a4f884edaa44f71ae5c24ea6158f248d4b1ea75
Contents?: true
Size: 929 Bytes
Versions: 38
Compression:
Stored size: 929 Bytes
Contents
require 'test_helper' module Shipit class CommitDeploymentStatusTest < ActiveSupport::TestCase setup do @status = shipit_commit_deployment_statuses(:shipit2_deploy_third_pending) @deployment = @status.commit_deployment @task = @deployment.task @commit = @deployment.commit @author = @deployment.author end test 'creation on GitHub' do response = stub(id: 44, url: 'https://example.com') @author.github_api.expects(:create_deployment_status).with( @deployment.api_url, 'pending', target_url: "http://shipit.com/shopify/shipit-engine/production/deploys/#{@task.id}", description: "walrus triggered the deploy of shopify/shipit-engine/production to #{@commit.sha}", ).returns(response) @status.create_on_github! assert_equal response.id, @status.github_id assert_equal response.url, @status.api_url end end end
Version data entries
38 entries across 38 versions & 1 rubygems