Skip to content

Commit

Permalink
Add test for extending bots list in runtime. Close fnando#286.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Apr 16, 2017
1 parent 53231c8 commit 8a8bb43
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/bots_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,14 @@ class BotsTest < Minitest::Test
assert browser.platform.android?
refute browser.bot?
end

test "extends list in runtime" do
browser = Browser.new("Faraday/0.9.2")
refute browser.bot?

Browser::Bot.bots["faraday"] = "Faraday"
assert browser.bot?

Browser::Bot.bots.delete("faraday")
end
end

0 comments on commit 8a8bb43

Please sign in to comment.