Sha256: 95a9c31d0ce58b9cfc9ee86bc1eafc5f694e23edfb50b35576fa230ce1864e85
Contents?: true
Size: 580 Bytes
Versions: 2
Compression:
Stored size: 580 Bytes
Contents
# -*- coding: utf-8 -*- Then /there is (a|no) utf8 input tag/ do |exists| rails32_xpath = "//input[@name='utf8' and @type='hidden' and @value='✓']" if exists == 'a' page.should have_xpath(rails32_xpath, visible: false) elsif exists == 'no' page.should have_no_xpath(rails32_xpath, visible: false) else raise ArgumentError.new("exists shall be either 'a' or 'no'") end end Given /I use Internet Explorer/ do Capybara.current_driver = :rack_test_non_compliant end Given /I use a compliant browser/ do Capybara.current_driver = :rack_test_compliant end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
utf8_enforcer_workaround-1.2.1 | features/step_definitions/utf8_enforcer_workaround_steps.rb |
utf8_enforcer_workaround-1.2.0 | features/step_definitions/utf8_enforcer_workaround_steps.rb |