Sha256: 8f7c80268889460a01609a7cfb7b061a5202e464f38de330d04fe54b1207cbb5

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

Then /^the output must match \/([^\/]+)\/([imx]*)$/ do |pattern, options|
  regexp = Regexp.new(pattern, options.each_char.inject(0) do |m, e|
    m | case e
      when ?i then Regexp::IGNORECASE
      when ?m then Regexp::MULTILINE
      when ?x then Regexp::EXTENDED
    end
  end)
  expect(last_command_started.output).to match regexp
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
localeapp-3.3.0 features/step_definitions/output_steps.rb
localeapp-3.2.0 features/step_definitions/output_steps.rb
localeapp-3.1.3 features/step_definitions/output_steps.rb
localeapp-3.1.2 features/step_definitions/output_steps.rb
localeapp-3.1.1 features/step_definitions/output_steps.rb
localeapp-3.1.0 features/step_definitions/output_steps.rb
localeapp-3.0.1 features/step_definitions/output_steps.rb
localeapp-3.0.0 features/step_definitions/output_steps.rb
localeapp-2.5.0 features/step_definitions/output_steps.rb
localeapp-2.4.0 features/step_definitions/output_steps.rb
localeapp-2.3.0 features/step_definitions/output_steps.rb
localeapp-2.2.0 features/step_definitions/output_steps.rb