Sha256: 2794cc52a5e41f80eed19fa7073777d2b5963614eb2d410e9f4b2b5641b312c5
Contents?: true
Size: 676 Bytes
Versions: 4
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe App::Base do it 'should response with root' do get '/with-root/' match_response_schema(:test_with_root) end it 'should response without root' do get '/without-root/' match_response_schema(:test_without_root) end it 'should response with specific serializer' do get '/with-specific-serializer/' match_response_schema(:test_with_specific_serializer) json = JSON.parse last_response.body expect(json['bar']).to eq('This is a custom serializer - Test') end it 'should response with each serializer' do get '/with-each-serializer/' match_response_schema(:test_with_each_serializer) end end
Version data entries
4 entries across 4 versions & 1 rubygems