test/integration/test_recommendations.rb in peddler-0.7.11 vs test/integration/test_recommendations.rb in peddler-0.8.0
- old
+ new
@@ -3,17 +3,20 @@
class RecommendationsTest < IntegrationTest
def test_gets_last_updated_time_for_recommendations
clients.each do |client|
res = client.get_last_updated_time_for_recommendations
- refute_empty res.parse
+ # MWS won't recommend unless account has actual sales
+ skip unless content = res.parse
+ refute_empty content
end
end
def test_lists_recommendations
clients.each do |client|
res = client.list_recommendations
- refute_empty res.parse
+ skip unless content = res.parse
+ refute_empty content
end
end
def test_gets_service_status
clients.each do |client|