@@ -404,7 +404,7 @@ def build_service(attrs={})
404404 end
405405
406406 context "of type #{ test [ :type ] } and action #{ schema_action } has a valid schema" do
407- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , type : 'object' } } } } }
407+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , type : 'object' } } } } }
408408
409409 before do
410410 stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
@@ -424,8 +424,8 @@ def build_service(attrs={})
424424
425425 context "of type #{ test [ :type ] } and action #{ schema_action } is not a JSON object" do
426426 {
427- "#{ test [ :type ] } .#{ schema_action } " : { ( test [ :type ] ) . to_s => { schema_action => true } } ,
428- "#{ test [ :type ] } .#{ schema_action } .parameters" : { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => true } } }
427+ "#{ test [ :type ] } .#{ schema_action } " : { test [ :type ] . to_s => { schema_action => true } } ,
428+ "#{ test [ :type ] } .#{ schema_action } .parameters" : { test [ :type ] . to_s => { schema_action => { 'parameters' => true } } }
429429 } . each do |path , schema |
430430 context "operator receives an error about #{ path } #{ schema } " do
431431 before do
@@ -456,7 +456,7 @@ def build_service(attrs={})
456456
457457 context "of type #{ test [ :type ] } and action #{ schema_action } does not conform to JSON Schema Draft 04 (experimental support for later versions)" do
458458 let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
459- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , properties : true } } } } }
459+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://json-schema.org/draft-04/schema#' , properties : true } } } } }
460460
461461 before do
462462 stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
@@ -487,7 +487,7 @@ def build_service(attrs={})
487487 let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
488488 let ( :schema ) do
489489 {
490- ( test [ :type ] ) . to_s => {
490+ test [ :type ] . to_s => {
491491 schema_action => {
492492 'parameters' => {
493493 '$schema' : 'http://json-schema.org/draft-04/schema#' ,
@@ -528,7 +528,7 @@ def build_service(attrs={})
528528
529529 context "of type #{ test [ :type ] } and action #{ schema_action } has an external schema" do
530530 let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
531- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://example.com/schema' , type : 'object' } } } } }
531+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { '$schema' : 'http://example.com/schema' , type : 'object' } } } } }
532532
533533 before do
534534 stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
@@ -558,7 +558,7 @@ def build_service(attrs={})
558558 let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
559559 let ( :schema ) do
560560 {
561- ( test [ :type ] ) . to_s => {
561+ test [ :type ] . to_s => {
562562 schema_action => {
563563 'parameters' => {
564564 '$schema' : 'http://json-schema.org/draft-04/schema#' ,
@@ -595,7 +595,7 @@ def build_service(attrs={})
595595
596596 context "of type #{ test [ :type ] } and action #{ schema_action } has no $schema" do
597597 let ( :path ) { "#{ test [ :type ] } .#{ schema_action } .parameters" }
598- let ( :schema ) { { ( test [ :type ] ) . to_s => { schema_action => { 'parameters' => { type : 'object' } } } } }
598+ let ( :schema ) { { test [ :type ] . to_s => { schema_action => { 'parameters' => { type : 'object' } } } } }
599599
600600 before do
601601 stub_catalog_fetch ( 200 , default_catalog ( plan_schemas : schema ) )
0 commit comments