Sha256: 7417e66ac9a73fb88a8608f7d66785e0b8ab065e28486e04b7203fa9ae6c5363
Contents?: true
Size: 1019 Bytes
Versions: 1
Compression:
Stored size: 1019 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../test_helper') describe ::Repomen::Repo::Service::GitHub do let(:described_class) { ::Repomen::Repo::Service::GitHub } it "should recognize a Github URL via git" do url = "git@github.com:octocat/Hello-World.git" service = described_class.new(url) assert service.applicable? assert_equal "octocat", service.user_name assert_equal "Hello-World", service.repo_name end it "should recognize a Github URL via git protocol" do url = "git://github.com/octocat/Hello-World.git" service = described_class.new(url) assert service.applicable? assert_equal "octocat", service.user_name assert_equal "Hello-World", service.repo_name end it "should recognize a Github URL via https" do url = "https://github.com/octocat/Hello-World.git" service = described_class.new(url) assert service.applicable? assert_equal "octocat", service.user_name assert_equal "Hello-World", service.repo_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
repomen-0.2.0 | test/repomen/repo/service/git_hub_test.rb |