Remove Nameable dependancy and return API data directly

This commit is contained in:
Dan Milne
2019-10-25 15:05:55 +11:00
parent 1ad818b4d7
commit 50c3df89ba
5 changed files with 23 additions and 7 deletions

View File

@@ -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