Sha256: 945a48e0bc0f3959410996320da9629c02b2284ba30f3176b00c1c772b451528

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 Bytes

Contents

class YouTrack::Client::AddProjectFixVersion < YouTrack::Client::Request
  def real(params={})
    project = params.delete("project")
    version = params.delete("version")

    service.request(
      :path   => "/admin/project/#{project}/version/#{version}",
      :method => :put,
    )
  end

  def mock(params={})
    project = find(:projects, params.delete("project"))

    project["versions"] << params.delete("version")

    service.response
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
you_track-0.4.8 lib/you_track/client/requests/add_project_fix_version.rb
you_track-0.4.7 lib/you_track/client/requests/add_project_fix_version.rb
you_track-0.4.6 lib/you_track/client/requests/add_project_fix_version.rb
you_track-0.4.5 lib/you_track/client/requests/add_project_fix_version.rb
you_track-0.4.4 lib/you_track/client/requests/add_project_fix_version.rb
you_track-0.4.2 lib/you_track/client/requests/add_project_fix_version.rb
you_track-0.4.1 lib/you_track/client/requests/add_project_fix_version.rb
you_track-0.4.0 lib/you_track/client/requests/add_project_fix_version.rb