Sha256: be6d413febb9070194b800ce346e2ab4dbd48a797da24c4e87369439008586a4
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
# encoding: iso-8859-1 # frozen_string_literal: true # Ideally we would use Norwegian keywords here, but that won't work unless this # file is UTF-8 encoded. # Alternatively, it would be possible to use Norwegian keywords and encode the # file as UTF-8. # # In both cases, stepdef arguments will be sent in as UTF-8, regardless of what # encoding is used. Given(/^jeg drikker en "([^"]*)"$/) do |drink| expect(drink).to eq 'øl'.encode('UTF-8') end When(/^skal de andre si "([^"]*)"$/) do |greeting| expect(greeting).to eq 'skål'.encode('UTF-8') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-3.0.1 | features/lib/step_definitions/iso-8859-1_steps.rb |
cucumber-3.0.0 | features/lib/step_definitions/iso-8859-1_steps.rb |