Sha256: f44ed4c951cc2241237ae0fbecc24b4e99a9ed42b7cd32efefdfef2db3485810

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

describe 'Util', ->

  it 'should not find duplicates', ->
    loadFixtures('editable_fields.html')
    util = new Util()
    duplicates = util.find_duplicated_keys($('[data-cms]'))
    expect(duplicates.length).toBe(0)

  it 'should find duplicates', ->
    loadFixtures('duplicate_fields.html')
    util = new Util()
    duplicates = util.find_duplicated_keys($('[data-cms]'))
    expect(duplicates.length).toBe(1)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubber_ring-0.1.1 spec/javascripts/util_spec.coffee
rubber_ring-0.1.0 spec/javascripts/util_spec.coffee
rubber_ring-0.0.1 spec/javascripts/util_spec.coffee