Sha256: b8edbb8fad3bf0ca89c4a9c32c27677dd26c76286b92cb6530d48b6aad505fa1
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
require 'spec_helper' describe JsonSchemaSpec do describe "#json_schema_params" do it "generates proper params" do request, response = json_schema_params(:user, :get) expect(request).to eq( :id => request[:id], :token => "token" ) expect(response).to eq( :id => response[:id], :name => "name", :company => { :name => "company:name" } ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
json_schema_spec-0.0.3 | spec/json_schema_spec_spec.rb |
json_schema_spec-0.0.2 | spec/json_schema_spec_spec.rb |
json_schema_spec-0.0.1 | spec/json_schema_spec_spec.rb |