test/story_test.rb in tracker_api-1.13.0 vs test/story_test.rb in tracker_api-1.14.0
- old
+ new
@@ -317,6 +317,18 @@
_(review.review_type.name).must_equal 'Test (QA)'
_(review.status).must_equal 'unstarted'
end
end
end
+
+ describe '.pull_requests' do
+ it 'gets all pull requests for the story' do
+ pull_requests = VCR.use_cassette('get story with pull requests', record: :new_episodes) do
+ project.story(story_id, fields: ':default,pull_requests').pull_requests
+ end
+
+ _(pull_requests).wont_be_empty
+ pull_request = pull_requests.first
+ _(pull_request).must_be_instance_of TrackerApi::Resources::PullRequest
+ end
+ end
end