Sha256: 7b764f2c4194d31f20e8ff6d0721c2d5eab0e87894a9b8701e79ad5922b0c3b3

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

# -*- encoding : utf-8 -*-

describe Card::Set::All::References do
  it 'should replace references should work on nests inside links' do
    card = Card.create! name: 'ref test', content: '[[test_card|test{{test}}]]'
    assert_equal '[[test_card|test{{best}}]]',
                 card.replace_reference_syntax('test', 'best')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
card-1.18.6 mod/01_core/spec/set/all/references_spec.rb
card-1.18.5 mod/01_core/spec/set/all/references_spec.rb
card-1.18.4 mod/01_core/spec/set/all/references_spec.rb
card-1.18.3 mod/01_core/spec/set/all/references_spec.rb
card-1.18.2 mod/01_core/spec/set/all/references_spec.rb
card-1.18.1 mod/01_core/spec/set/all/references_spec.rb
card-1.18.0 mod/01_core/spec/set/all/references_spec.rb