Sha256: c5cb6412f9ec51a1f64a4d7ffd56c502042bd43160f94db53196cedb814c50bf

Contents?: true

Size: 283 Bytes

Versions: 15

Compression:

Stored size: 283 Bytes

Contents

class ::RSpec::Matchers::BuiltIn::All
  def indent_multiline_message(message)
    # \z not supported in opal
    #message = message.sub(/\n+\z/, '')
    message = message.sub(/\n+$/, '')
    message.lines.map do |line|
      line =~ /\S/ ? '   ' + line : line
    end.join
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
opal-rspec-0.8.0 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.8.0.alpha3 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.8.0.alpha2 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.8.0.alpha1 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.7.1 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.7.0 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.6.2 opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.7.0.rc.2 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.7.0.rc.1 lib-opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.6.1 opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.6.0 opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.6.0.beta1 opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-connect-rspec-0.5.0 opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.5.0 opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
opal-rspec-0.5.0.beta3 opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb