Sha256: 391494c132cb65dc10120c703cf400f5037ac4bd1270a62da58cbafece978ebd

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 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)
  elsif exists == 'no'
    page.should have_no_xpath(rails32_xpath)
  else
    raise ArgumentError.new("exists shall be either 'a' or 'no'")
  end
end

Then /I use Internet Explorer/ do
   set_headers({'HTTP_USER_AGENT'=> "Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1)"})
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
utf8_enforcer_workaround-1.0.1 features/step_definitions/utf8_enforcer_workaround_steps.rb
utf8_enforcer_workaround-1.0.0 features/step_definitions/utf8_enforcer_workaround_steps.rb
utf8_enforcer_workaround-0.0.2 features/step_definitions/utf8_enforcer_workaround_steps.rb