Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fatmahussein committed Oct 25, 2023
1 parent 77489ae commit d963dd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions author.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
class Author
attr_reader :id, :first_name, :last_name
attr_accessor :authors
attr_accessor :items

def initialize(first_name, last_name)
@id = Random.rand(1..1000)
@first_name = first_name
@last_name = last_name
@authors = []
@items = []
end

def add_item(item)
Expand Down
2 changes: 1 addition & 1 deletion json/authors.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"id":359,"first_name":"Fatma","last_name":"Hussein"}]
[{"id":639,"first_name":359,"last_name":null},{"id":470,"first_name":"fh","last_name":null}]
2 changes: 1 addition & 1 deletion json/games.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"publish_date":"GOT","archived":true,"multiplayer":true,"last_played_at":"20/19/1990"}]
[{"publish_date":"GOT","archived":true,"multiplayer":true,"last_played_at":"20/19/1990"},{"publish_date":"10/10/1990","archived":true,"multiplayer":true,"last_played_at":"20/20/2990"}]

0 comments on commit d963dd3

Please sign in to comment.