Module: BotAway::TestCase::Matchers

Defined in:
lib/bot-away/test_case/matchers.rb

Defined Under Namespace

Classes: HoneypotMatcher, ObfuscationMatcher

Instance Method Summary collapse

Instance Method Details

#be_obfuscatedObject



13
14
15
# File 'lib/bot-away/test_case/matchers.rb', line 13

def be_obfuscated
  be_obfuscated_as obfuscated_name, obfuscated_id
end

#be_obfuscated_as(obfuscated_name, obfuscated_id) ⇒ Object



5
6
7
# File 'lib/bot-away/test_case/matchers.rb', line 5

def be_obfuscated_as(obfuscated_name, obfuscated_id)
  ObfuscationMatcher.new(obfuscated_name, obfuscated_id)
end

#include_honeypotObject



17
18
19
# File 'lib/bot-away/test_case/matchers.rb', line 17

def include_honeypot
  include_honeypot_called tag_name, tag_id
end

#include_honeypot_called(tag_name, tag_id) ⇒ Object



9
10
11
# File 'lib/bot-away/test_case/matchers.rb', line 9

def include_honeypot_called(tag_name, tag_id)
  HoneypotMatcher.new(tag_name, tag_id)
end