mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 15:14:52 +00:00
Remove Nameable dependancy and return API data directly
This commit is contained in:
@@ -64,6 +64,19 @@ class ItemTest < Minitest::Test
|
||||
artists: []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Bad Contributors',
|
||||
response: 'get_item_bad_contributor.json',
|
||||
item_count: 1,
|
||||
items: [
|
||||
{
|
||||
asin: "055357342X",
|
||||
authors: ['.'],
|
||||
illustrators: [],
|
||||
artists: []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -77,7 +90,7 @@ class ItemTest < Minitest::Test
|
||||
|
||||
tc[:items].each_with_index do |item, idx|
|
||||
item.keys.each do |exp|
|
||||
assert_equal item[exp], resp.items[idx].send(exp)
|
||||
assert_equal item[exp], resp.items[idx].send(exp), "Dataset: #{tc[:name]}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user