Sha256: b3ecd13de6b92dbecfbd65faec7cde4d8bbeefdc300982ffdd3f45eb6f9596fa
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
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 it "should recognize a Github URL via https w/o .git extension" do url = "https://github.com/octocat/Hello-World" 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.1 | test/repomen/repo/service/git_hub_test.rb |