Sha256: 02ca42d55437baea00dd664d101abb1a818f3dc07a902d0650e814fa5020dd99

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

class Encoding::UndefinedConversionError < StandardError; end unless defined? Encoding::UndefinedConversionError
class Encoding::InvalidByteSequenceError < StandardError; end unless defined? Encoding::InvalidByteSequenceError
class Encoding::ConverterNotFoundError < StandardError; end unless defined? Encoding::ConverterNotFoundError

# Opal doesn't support encoding
class RSpec::Support::EncodedString
  def <<(string)
    @string += matching_encoding(string)
  end

  def self.pick_encoding(source_a, source_b)
    "utf-8"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-rspec-1.1.0.alpha3 lib-opal/opal/rspec/fixes/rspec/support/encoded_string.rb
opal-rspec-1.1.0.alpha2 lib-opal/opal/rspec/fixes/rspec/support/encoded_string.rb
opal-rspec-1.1.0.alpha1 lib-opal/opal/rspec/fixes/rspec/support/encoded_string.rb
opal-rspec-1.0.0 lib-opal/opal/rspec/fixes/rspec/support/encoded_string.rb
opal-rspec-1.0.0.alpha1 lib-opal/opal/rspec/fixes/rspec/support/encoded_string.rb