Sha256: d1200560a67966ce5ad94e99c0904d562e9694b177eefd729c1f539a9654e777
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require 'spec_helper' RSpec.describe RedmineClient::Issue do describe '.search' do subject { RedmineClient::Issue.search(subject: 'nice subject', status_id: '*') } it 'starts a get request with the correct path' do allow(RedmineClient::Issue).to receive(:new) expect(RedmineClient::Issue). to receive(:get).with('/issues.json', query: { subject: 'nice subject', status_id: '*'}). and_return double(ok?: true, :[] => []) subject end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nine-redmine-client-1.0.0 | spec/redmine_client/issue_spec.rb |