Sha256: 6d6597a25868268ac6a7ce436969f3f0555e98dc46feb94cd3f730d16bda4105

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'

module TeamcityRuby
  describe AgentPool do
    before do
      delete_all_agent_pools
      delete_all_projects
    end

    it "creates an agent pool", :vcr => true do
      pool = AgentPool.create("Linux")

      AgentPool.find(:id => pool.teamcity_id).should_not be_nil
    end

    it "adds a project to an agent pool" do
      pool = AgentPool.create("Linux")
      project = Project.create("Sample Project")

      pool.add_project(:project_id => project.teamcity_id)

      pool.projects.map(&:teamcity_id).should include(project.teamcity_id)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
teamcity_ruby-0.0.6 spec/teamcity_ruby/agent_pool_spec.rb