Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasleger committed Jan 16, 2022
1 parent 090eb81 commit 3200578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_openbeautyfacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_it_updates_product
def test_it_fetches_additives
VCR.use_cassette("additives") do
additives = ::Openbeautyfacts::Additive.all # World to have riskiness
assert_includes additives.map { |additive| additive['url'] }, "https://world.openbeautyfacts.org/additive/e508-potassium-chloride"
assert_includes additives.map { |additive| additive['url'] }, "https://world.openbeautyfacts.org/additive/e470b-magnesium-salts-of-fatty-acids"
refute_nil additives.detect { |additive| !additive['riskiness'].nil? }
end
end
Expand Down

0 comments on commit 3200578

Please sign in to comment.