features/json_parsing.feature in son_jay-0.1.1.alpha vs features/json_parsing.feature in son_jay-0.2.0.alpha

- old
+ new

@@ -25,11 +25,11 @@ } JSON """ When the JSON is parsed to a model instance as: """ - instance = SimpleObjectModel.json_create( json ) + instance = SimpleObjectModel.parse_json( json ) """ Then the instance attributes are as follows: | id | name | published | featured | owner | | 55 | "Polygon" | true | false | nil | @@ -65,11 +65,11 @@ } JSON """ When the JSON is parsed to a model instance as: """ - instance = ThingModel.json_create( json ) + instance = ThingModel.parse_json( json ) """ Then the instance attributes are as follows: | name | details.color | details.size | | "Cherry" | "red" | "small" | @@ -92,11 +92,11 @@ } JSON """ When the JSON is parsed to a model instance as: """ - instance = ContestantModel.json_create( json ) + instance = ContestantModel.parse_json( json ) """ Then the instance attributes are as follows: | name | scores[0] | scores[1] | scores[2] | | "Pat" | 9 | 5 | 7 | @@ -125,11 +125,11 @@ } JSON """ When the JSON is parsed to a model instance as: """ - instance = TicTacToeModel.json_create( json ) + instance = TicTacToeModel.parse_json( json ) """ Then the instance attributes are as follows: | rows[0][0] | rows[0][1] | rows[0][2] | | 'X' | 'O' | 'X' | | rows[1][0] | rows[1][1] | rows[1][2] | @@ -175,11 +175,11 @@ } JSON """ When the JSON is parsed to a model instance as: """ - instance = ListModel.json_create( json ) + instance = ListModel.parse_json( json ) """ Then the instance attributes are as follows: | name | items[0].description | items[0].priority | items[1].description | items[1].priority | | "Shopping" | "Potato Chips" | "Low" | "Ice Cream" | "High" | @@ -214,10 +214,10 @@ } JSON """ When the JSON is parsed to a model instance as: """ - instance = TableModel.json_create( json ) + instance = TableModel.parse_json( json ) """ Then the instance attributes are as follows: | rows[0][0].is_head | rows[0][0].value | rows[0][1].is_head | rows[0][1].value | | 1 | "Date" | 1 | "Sightings" | | rows[1][0].is_head | rows[1][0].value | rows[1][1].is_head | rows[1][1].value |