Sha256: 2fd8dc864f16ae14edcc4a3ce6d3e4d57b754e8a9ae15c1443bc806f81520fdb
Contents?: true
Size: 788 Bytes
Versions: 12
Compression:
Stored size: 788 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../test_helper') describe ::Repomen::Repo::Service::BitBucket do let(:described_class) { ::Repomen::Repo::Service::BitBucket } it "should recognize a Github URL via git" do url = "git@bitbucket.org:atlassian_tutorial/helloworld.git" service = described_class.new(url) assert service.applicable? assert_equal "atlassian_tutorial", service.user_name assert_equal "helloworld", service.repo_name end it "should recognize a Github URL via https" do url = "https://bitbucket.org/atlassian_tutorial/helloworld.git" service = described_class.new(url) assert service.applicable? assert_equal "atlassian_tutorial", service.user_name assert_equal "helloworld", service.repo_name end end
Version data entries
12 entries across 12 versions & 1 rubygems