Sha256: 027ab271788dacdde68e08c1e3fdaa743e02b000d46f4efa12e8f646ef818b4f
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 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[0][:id], :admin => 0, :name => "name", :company => { :name => "company:name" }, :articles => [ { :body => "articles:body", :title => "articles:title" } ] }]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
json_schema_spec-0.1.2 | spec/json_schema_spec_spec.rb |
json_schema_spec-0.1.1 | spec/json_schema_spec_spec.rb |
json_schema_spec-0.1.0 | spec/json_schema_spec_spec.rb |