Sha256: 1dad1e1d3bba79538e88bdeed1226f937bda6ba9889adb69345dfceb36073045

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

class YouTrack::Client::UpdateIssue < YouTrack::Client::Request
  def real(params={})
    id = params.delete("id")
    service.request(
      :path   => "/issue/#{id}",
      :method => :post,
      :query  => params,
    )
  end

  def mock(params={})
    id    = params.delete("id")
    issue = find(:issues, id)

    issue.merge!(params)
    service.data[:issues][id] = issue

    service.response
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
you_track-0.4.4 lib/you_track/client/requests/update_issue.rb
you_track-0.4.2 lib/you_track/client/requests/update_issue.rb
you_track-0.4.1 lib/you_track/client/requests/update_issue.rb
you_track-0.4.0 lib/you_track/client/requests/update_issue.rb
you_track-0.3.0 lib/you_track/client/requests/update_issue.rb
you_track-0.2.2 lib/you_track/client/update_issue.rb
you_track-0.2.1 lib/you_track/client/update_issue.rb
you_track-0.2.0 lib/you_track/client/update_issue.rb