Sha256: 351bc88b048716ac4a0ce2dbe3852b02b272c8f5d1b340717e696dc2603425ad

Contents?: true

Size: 654 Bytes

Versions: 40

Compression:

Stored size: 654 Bytes

Contents

require 'test_helper'

module Shipit
  class GithubUrlHelperTest < ActiveSupport::TestCase
    include Shipit::GithubUrlHelper

    test "#github_user_url returns a user url" do
      assert_equal "https://github.com/tobi", github_user_url("tobi")
    end

    test "#github_repo_url returns a repo url" do
      assert_equal "https://github.com/rails/rails", github_repo_url("rails", "rails")
    end

    test "#github_commit_url returns a commit url" do
      expected = 'https://github.com/shopify/shipit-engine/commit/6d9278037b872fd9a6690523e411ecb3aa181355'
      assert_equal expected, github_commit_url(shipit_commits(:first))
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 test/unit/github_url_helper_test.rb
shipit-engine-0.30.0 test/unit/github_url_helper_test.rb
shipit-engine-0.29.0 test/unit/github_url_helper_test.rb
shipit-engine-0.28.1 test/unit/github_url_helper_test.rb
shipit-engine-0.28.0 test/unit/github_url_helper_test.rb
shipit-engine-0.27.1 test/unit/github_url_helper_test.rb
shipit-engine-0.27.0 test/unit/github_url_helper_test.rb
shipit-engine-0.26.0 test/unit/github_url_helper_test.rb
shipit-engine-0.25.1 test/unit/github_url_helper_test.rb
shipit-engine-0.25.0 test/unit/github_url_helper_test.rb
shipit-engine-0.24.0 test/unit/github_url_helper_test.rb
shipit-engine-0.23.1 test/unit/github_url_helper_test.rb
shipit-engine-0.23.0 test/unit/github_url_helper_test.rb
shipit-engine-0.22.0 test/unit/github_url_helper_test.rb
shipit-engine-0.21.0 test/unit/github_url_helper_test.rb
shipit-engine-0.20.1 test/unit/github_url_helper_test.rb
shipit-engine-0.20.0 test/unit/github_url_helper_test.rb
shipit-engine-0.19.0 test/unit/github_url_helper_test.rb
shipit-engine-0.18.1 test/unit/github_url_helper_test.rb
shipit-engine-0.18.0 test/unit/github_url_helper_test.rb