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

Version Path
repomen-0.2.1 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.2.0 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.2.0.rc1 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.8 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.7 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.6 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.5 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.4 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.3 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.2 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.1 test/repomen/repo/service/bit_bucket_test.rb
repomen-0.1.0 test/repomen/repo/service/bit_bucket_test.rb