Sha256: 98de1b5c30ba75b331de415852feb4bffeff8a8b57a8d0f05b9135dbd7306d41

Contents?: true

Size: 318 Bytes

Versions: 56

Compression:

Stored size: 318 Bytes

Contents

require 'spec_helper'

describe Opal do
  context '.instance_variable_name!' do
    it 'does not use regular expressions on Opal level, so $` stays the same' do
      'some string' =~ /string/
      post_match = $`

      Opal.instance_variable_name!(:@ivar_name)

      expect($`).to eq(post_match)
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 spec/opal/core/helpers_spec.rb
opal-1.8.2 spec/opal/core/helpers_spec.rb
opal-1.8.1 spec/opal/core/helpers_spec.rb
opal-1.8.0 spec/opal/core/helpers_spec.rb
opal-1.8.0.beta1 spec/opal/core/helpers_spec.rb
opal-1.7.4 spec/opal/core/helpers_spec.rb
opal-1.8.0.alpha1 spec/opal/core/helpers_spec.rb
opal-1.7.3 spec/opal/core/helpers_spec.rb
opal-1.7.2 spec/opal/core/helpers_spec.rb
opal-1.7.1 spec/opal/core/helpers_spec.rb
opal-1.7.0 spec/opal/core/helpers_spec.rb
opal-1.7.0.rc1 spec/opal/core/helpers_spec.rb
opal-1.6.1 spec/opal/core/helpers_spec.rb
opal-1.6.0 spec/opal/core/helpers_spec.rb
opal-1.6.0.rc1 spec/opal/core/helpers_spec.rb
opal-1.6.0.alpha1 spec/opal/core/helpers_spec.rb
opal-1.5.1 spec/opal/core/helpers_spec.rb
opal-1.5.0 spec/opal/core/helpers_spec.rb
opal-1.5.0.rc1 spec/opal/core/helpers_spec.rb
opal-1.4.1 spec/opal/core/helpers_spec.rb