Sha256: 302c25f3de8fe7bb965152cbe0eb4c50548183cbcea53475a240a1f8a1e6c4fe

Contents?: true

Size: 365 Bytes

Versions: 12

Compression:

Stored size: 365 Bytes

Contents

class YouTrack::Client::GetIssueComments < YouTrack::Client::Request
  def real(issue_id)
    service.request(
      :path => "/issue/#{issue_id}/comment",
      :parser => YouTrack::Parser::CommentsParser,
    )
  end

  def mock(issue_id)
    service.response(
      :body => service.data[:comments].values.select { |c| c['issueId'] == issue_id }
    )
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
you_track-0.4.8 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.4.7 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.4.6 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.4.5 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.4.4 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.4.2 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.4.1 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.4.0 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.3.0 lib/you_track/client/requests/get_issue_comments.rb
you_track-0.2.2 lib/you_track/client/get_issue_comments.rb
you_track-0.2.1 lib/you_track/client/get_issue_comments.rb
you_track-0.2.0 lib/you_track/client/get_issue_comments.rb