Sha256: dbcb654c54511eeeafeb66bd3c68836fa5df2f2bbb9518f0fb8789b62791aa78

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

require 'spec_helper'

module TeamcityRuby
  describe VcsRoot do
    before do
      delete_all_vcs_roots
    end

    it "lists all vcs roots", :vcr do
      vcs_root_names = ["VCS Root 1", "VCS Root 2"]

      vcs_root_names.each do |name|
        VcsRoot.create(:name => name) do |vcs_root|
          vcs_root['url'] = 'git@example.com/repo.git'
        end
      end

      VcsRoot.all.map(&:name).should == vcs_root_names
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
teamcity_ruby-0.0.3 spec/teamcity_ruby/vcs_root_spec.rb
teamcity_ruby-0.0.2 spec/teamcity_ruby/vcs_root_spec.rb
teamcity_ruby-0.0.1 spec/teamcity_ruby/vcs_root_spec.rb