Sha256: 3ea89618c92a429fbd016530e0bd8c0ef4256ee2d863ede0b573529a2ad5d1e1
Contents?: true
Size: 452 Bytes
Versions: 4
Compression:
Stored size: 452 Bytes
Contents
require 'spec_helper' RSpec.describe Grape::App::Helpers::Params do include Rack::Test::Methods let(:app) { TestAPI } it 'should limit params' do post '/articles', title: 'Today', fresh: true, id: 1234, updated_at: Time.now expect(last_response.status).to eq(201) expect(JSON.parse(last_response.body)).to eq( 'id' => 9, 'title' => 'Today', 'updated_at' => '2018-01-05 11:25:15 UTC', ) end end
Version data entries
4 entries across 4 versions & 1 rubygems