Sha256: 08ec3d099943a3177c7f4172f51b9d8ed76044b78a63e1013ef6761f19dafc1b

Contents?: true

Size: 492 Bytes

Versions: 9

Compression:

Stored size: 492 Bytes

Contents

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

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

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

    project["versions"].delete(version)

    service.response
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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