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