Sha256: b35323c71087eaf86d392b602a8364a0b162f2f2313d0b9ee49ad6622caf8ab2
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 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" }, :articles => [ { :body => "articles:body", :title => "articles:title" } ] ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
json_schema_spec-0.0.5 | spec/json_schema_spec_spec.rb |
json_schema_spec-0.0.4 | spec/json_schema_spec_spec.rb |