Sha256: 3d5a99ba6cf82616f65e68592d7e05bd47fae6e11dba9a442d380c1055970959
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
describe "Peristance Manager", -> beforeEach -> loadFixtures('editable_fields.html') it "should be able to sanitize html and get raw content", -> pm = new PersistenceManager(config.action_btns) sanitized = pm.sanitize($('h1')) expect(sanitized).toBe('Test content<p>Paragraph</p>') it "should post right content and key", -> spyOn($, "post") pm = new PersistenceManager(config.action_btns) pm.save($('a')) content = $.post.mostRecentCall.args[1].content expect(content.link).toBe('Link') expect(content.link_href).toBe('/link')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubber_ring-0.0.1 | spec/javascripts/persistence_manager_spec.coffee |