Sha256: 958754c0e7b0f0d7421f6edf5e9cd2343c4ef7bdde68dc15c95c2bd53af93d15
Contents?: true
Size: 500 Bytes
Versions: 21
Compression:
Stored size: 500 Bytes
Contents
module <%= @gen.camelname %> JSON_HEADERS = { 'HTTP_ACCEPT' => 'application/json' } describe App do it 'says hello' do get '/' expect(last_response).to be_ok expect(last_response.body).to match /Hello from <%= @gen.camelname %>/ end it 'serves JSON' do get '/', nil, JSON_HEADERS expect(last_response).to be_ok expect(JSON.parse last_response.body).to eq ( { 'app' => '<%= @gen.camelname %>' } ) end end end
Version data entries
21 entries across 21 versions & 1 rubygems