actually add version tested for...

pull/2407/head
Jens Ulferts 10 years ago
parent 9aa811d783
commit 88c8e18a13
  1. 8
      spec/requests/api/v3/work_packages/form/work_package_form_resource_spec.rb

@ -465,11 +465,17 @@ describe 'API v3 Work package form resource', type: :request do
let(:params) { valid_params.merge(version_parameter) }
describe 'allowed values' do
before do
other_version
end
include_context 'post request'
it 'should list all versions available for the project' do
expect(subject.body).to be_json_eql(version_link.to_json)
.at_path('_embedded/schema/version/_links/allowedValues/1/href')
expect(subject.body).to be_json_eql(other_version_link.to_json)
.at_path('_embedded/schema/versions/_links/allowedValues/1/href')
.at_path('_embedded/schema/version/_links/allowedValues/0/href')
end
end

Loading…
Cancel
Save