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")) version = params.delete("version") project["versions"] << version service.response end end