Module: TestSelector::HTMLHelper
- Defined in:
- lib/test_selector/html_helper.rb
Instance Method Summary collapse
Instance Method Details
#test(name = nil, value = nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/test_selector/html_helper.rb', line 5 def test(name = nil, value = nil) return if disable? called_by = caller raw setup_test(called_by, name, value) end |
#test_selector(name = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/test_selector/html_helper.rb', line 12 def test_selector(name = nil) return if disable? called_by = caller if name "#{get_selector(called_by)}__#{name}" else get_selector(called_by) end end |