Sha256: ea3ced0731518f392b656b7f57fc5359a1f226ddd0a5e94899186246406a50e4
Contents?: true
Size: 736 Bytes
Versions: 10
Compression:
Stored size: 736 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 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
10 entries across 10 versions & 1 rubygems