Sha256: 883bd871a698235c2f795e42f68eec6fd4c3f9d1e3cb7b6370d17357b5855ff1

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')

describe ::Repomen::Repo::Service do
  let(:described_class) { ::Repomen::Repo::Service }

  it "should recognize a GitHub URL via git" do
    url = "git@github.com:octocat/Hello-World.git"
    service = described_class.for(url)
    assert_equal :github, service.name
  end

  it "should recognize a BitBucket URL via git" do
    url = "git@bitbucket.org:atlassian_tutorial/helloworld.git"
    service = described_class.for(url)
    assert_equal :bitbucket, service.name
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
repomen-0.1.3 test/repomen/repo/service_test.rb
repomen-0.1.2 test/repomen/repo/service_test.rb
repomen-0.1.1 test/repomen/repo/service_test.rb
repomen-0.1.0 test/repomen/repo/service_test.rb