Skip to content

Commit

Permalink
And missed a rename bit!
Browse files Browse the repository at this point in the history
  • Loading branch information
zspencer committed Mar 11, 2023
1 parent 69008a9 commit 3d5fba8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/lib/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Room extends Model {
room: {
name: this.name,
slug: this.slug,
furniturePlacementsAttributes: this.furniturePlacementsAttributes,
furnituresAttributes: this.furnituresAttributes,
},
};
}
Expand Down
5 changes: 3 additions & 2 deletions features/steps/furniture_steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ Given(
* @param {DataTable} dataTable
*/
function (_a, furniture, _a2, room, space, dataTable) {
const furniturePlacementsAttributes = [
const furnituresAttributes = [
{
furnitureKind: furniture.type.toLowerCase(),
furnitureAttributes: dataTableToHash(dataTable),
},
];

return this.api()
.rooms(space)
.update(room.assign({ furniturePlacementsAttributes }));
.update(room.assign({ furnituresAttributes }));
}
);
Then(
Expand Down

0 comments on commit 3d5fba8

Please sign in to comment.