Sha256: 3e252577bc87b03662db3f750cbece9bd65f6f1c34aceefb30fd3f9288f31294
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
require 'spec_helper' module Swagger module V2 describe API do let(:swagger_file) { 'spec/fixtures/custom-properties.yaml' } let(:swagger) { Swagger.load swagger_file } context 'custom properties' do describe 'getting a custom property' do it 'should allow me to get a custom x- prefixed property' do operation = swagger.paths['/pets'].get expect(operation['x-my-custom-param']).to eq('whatever the hell I want!') end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swagger-parser-0.2.6 | spec/swagger/custom_properties_spec.rb |
swagger-parser-0.2.5 | spec/swagger/custom_properties_spec.rb |